jwt-auth 1.1.0 → 1.2.0

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
  SHA1:
3
- metadata.gz: d74cc6625139bc3902a071d6d874459689d5d760
4
- data.tar.gz: 486adce1dd96a6eb8131de2ae8f423ed0c5bea88
3
+ metadata.gz: b8bbf5c4951540d2735fdd31dd738b79bf60a70d
4
+ data.tar.gz: 5a2efb6655951066e3cc6dcad47cf266a7b2fcbd
5
5
  SHA512:
6
- metadata.gz: d0bd4f187aa11e758844a12fb84dc7fc05cb3f0f9c402a83968412a4eafa1f38ac93249483cbf63a02f56df54a8834b676e1aef67a5f9ab9138be089efc498ec
7
- data.tar.gz: f2da60f7133afd87c05d5474575f4e20a7622ff7a48890ec8971e071253ae5109dde7eecf143ce327009cb9e9d1f4e8bf0bda66c9db9d6a0ebad2c240e2f0e0d
6
+ metadata.gz: 99d861c597546f3474672dd98a29a2bc4d95598cf4a50a881d6a8866f1d746e721a29bc9b03ed0bc4cbdab60e3d7b5fa9d2881983ff8384339339438fe99bdde
7
+ data.tar.gz: 982e74b49487c254d8b57eb6ac4b197be42d55d8f6bed42f075bd79efb4332aacf44e1f62bfedd20a29f90b0b55925bbabcb6bb5ade055b46ae4b91c18be0631
@@ -29,6 +29,7 @@ module JWT
29
29
  # Add JWT header to response
30
30
  #
31
31
  def add_token_to_response
32
+ return unless token&.valid?
32
33
  token.renew!
33
34
  response.headers['Authorization'] = "Bearer #{token.to_jwt}"
34
35
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module JWT
4
4
  module Auth
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Dejonckheere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt