devise_capturable 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devise_capturable/strategy.rb +4 -3
- data/lib/devise_capturable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f51b0aa643fe6b487a286db464c935b978fbe58b
|
4
|
+
data.tar.gz: dcffd26b7aa26740dca75715f5f09ea39834f0ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb115151a1cf99ad3615f4d716b4d6b525b51d1d8022d6aeb35d963d28f8ece257c1cf6908ff8bcf961561918cc2db165e3f9585b31c8d4da65c110c10f0357f
|
7
|
+
data.tar.gz: 0ce8381d6fc6ad4920a825a76daa23cb66ba281e6b6607b8a33de772e96d3a2a9181a1bc3cad4985666679edc7181f0c85e0839df464446759fe94b49fecc275
|
@@ -46,10 +46,11 @@ module Devise
|
|
46
46
|
new_token = Devise::Capturable::API.refresh_token(token['refresh_token'])
|
47
47
|
return fail!(:capturable_user_error) unless new_token['stat'] == 'ok'
|
48
48
|
puts "Devise Capturable New Token #{new_token.inspect}"
|
49
|
-
|
50
|
-
|
49
|
+
token_string = new_token["access_token"].to_s
|
50
|
+
puts "token is: #{token_string.inspect}"
|
51
|
+
|
51
52
|
fail!(:capturable_user_missing)
|
52
|
-
redirect!(Devise.capturable_redirect_if_no_user, :token =>
|
53
|
+
redirect!(Devise.capturable_redirect_if_no_user, :token => token_string)
|
53
54
|
|
54
55
|
# else fail
|
55
56
|
else
|