solidus_jwt 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spree/api/oauths_controller.rb +5 -1
- data/lib/solidus_jwt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d4e429b6fd29bf612071dcde79200919622300bbe14c3d57415da6eb1223a6f
|
4
|
+
data.tar.gz: 61b8552ee07a12bfb377c41ff1a398d334577a3740069edef09ec08a4f2a1d94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 303daa23aab0a1b2e63dbb69c56e2bc3761cabaf600133581f0ca9c4ba615bf66053d1e5372771560c8b1d1a3a9072bd51593cabe9ce54bafd8897ace4df5f88
|
7
|
+
data.tar.gz: 82aa9ff8a18ffe67ae503f9cdd96c8a6072bdfbcf031bf169343f3387a4ae6555cce0ab2a203b9961422995b344895f1266a864c5a873aeb02f224cf6ca7ac96
|
@@ -14,8 +14,12 @@ module Spree
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def render_token_for(user)
|
17
|
+
expires_in = SolidusJwt::Config.jwt_expiration
|
18
|
+
|
17
19
|
render json: {
|
18
|
-
|
20
|
+
token_type: 'bearer',
|
21
|
+
access_token: user.generate_jwt(expires_in: expires_in),
|
22
|
+
expires_in: expires_in,
|
19
23
|
refresh_token: generate_refresh_token_for(user)
|
20
24
|
}
|
21
25
|
end
|
data/lib/solidus_jwt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Scott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|