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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e295cf784cd7480da864f9f402f75b9c8e9acb1ecdd611c7bb592121c329ea46
4
- data.tar.gz: 31705028f11d7134864145b845e345f1816b0cb2e67bb21b7761ec15ce3f356a
3
+ metadata.gz: 4d4e429b6fd29bf612071dcde79200919622300bbe14c3d57415da6eb1223a6f
4
+ data.tar.gz: 61b8552ee07a12bfb377c41ff1a398d334577a3740069edef09ec08a4f2a1d94
5
5
  SHA512:
6
- metadata.gz: 638d994f7ef700464469cfd1f601edce39118dc41bc221970e56bcc4814a5aa1792573b01c7fd06a16ae2a939ddcfe158f6151f0d184c688d84359f5c41eb0cd
7
- data.tar.gz: 3102363bd70e336b49ec0b4287fae49b1b0bd2f5414e011fde6f8db3fc9e1e0d23fd42d97ce75f85c03feff2c03a08dd86f2779547c0e1132ff888eabd76dcf9
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
- access_token: user.generate_jwt,
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
@@ -2,7 +2,7 @@ module SolidusJwt
2
2
  MAJOR = 1
3
3
  MINOR = 0
4
4
  PATCH = 0
5
- PRERELEASE = 'beta1'
5
+ PRERELEASE = 'beta2'
6
6
 
7
7
  def self.version
8
8
  version = [MAJOR, MINOR, PATCH].join('.')
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.beta1
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-01 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt