sorcery-jwt 0.1.3 → 0.1.4

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: 83ffa69e0a5299c467710cc85a33bf9b7d77c8cd76a4677f6d9acedc7fcfd1c7
4
- data.tar.gz: 642d06e047c425807c76a6483edaa3784c010f6c1e3af8328b7ef2004e7d5b36
3
+ metadata.gz: 23cfb312ee96e4e9ad20191fcb5d6bbca80382cbe92b388294f2777b4f506141
4
+ data.tar.gz: 70d91b37cae75a32de14a7f8fe6f94b20efeab8d390897e3f4c0ebf86c104e80
5
5
  SHA512:
6
- metadata.gz: f22289c2e99ed9168613ff171583837587920869898a2a41e63104794f86cf0bf1298111d5de8f7a6abca8a46df8324770e0f26703346ec8d7194f39d4d4bb55
7
- data.tar.gz: 8444ba0bf0598383d23d6c741ab20d5ac3e208508166d4f6b6e7fd7e61a2ea4b776ea56351cfa83430ca5824a18e1c446721538bb7b441aebbb59875e417ed98
6
+ metadata.gz: 21482e332a6f63c96451ebf8a36ec6bf040e23742e24ce82123e82ffbc9ebd3fc5b4f1a8c0b3a60b2bcf93f59032bdb85f94c6c8cae61fc9cfb79313cf2da7fb
7
+ data.tar.gz: 9af2bcbbb64c0ae1acaaf3f9ed02cf9bfc3d72320d7c7d60726286448ed3f708e1e1b829d951e49e49b0887f7d33ca744319b43375e6d6b52b071688f08d0e26
@@ -1,5 +1,5 @@
1
1
  module Sorcery
2
2
  module Jwt
3
- VERSION = "0.1.3".freeze
3
+ VERSION = "0.1.4".freeze
4
4
  end
5
5
  end
@@ -40,6 +40,8 @@ module Sorcery
40
40
 
41
41
  def token_valid?(token)
42
42
  decode_token(token).present?
43
+ rescue JWT::DecodeError, JWT::ExpiredSignature
44
+ false
43
45
  end
44
46
 
45
47
  protected
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorcery-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hayden Luckenbach
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-31 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler