mumsnet_jwt 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumsnet_jwt.rb +1 -3
- 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: 9fb58ee43b66fcde04db7f334c2cda8fc9269b13
|
4
|
+
data.tar.gz: f23760a174cf0e16eb1367c7ed39b6984a646de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4713e226e069c95736128fad40b9d798a753d26b34195d7cf88c2ea80494b9c7a0c7661d206701e7db91015e78044fec46aab83356c07ed032c9e0494b927249
|
7
|
+
data.tar.gz: 71d04f2b36c75c818243aa58cea2984bd2b10bb13f496f9d251a8fe57646aa445ad77cbbe49d75d5a36c0529f2f24112f0fc89ab0ead5a926cbd8c737c2dcc1b
|
data/lib/mumsnet_jwt.rb
CHANGED
@@ -3,8 +3,6 @@ module MumsnetJWT
|
|
3
3
|
require 'jwt'
|
4
4
|
require 'json'
|
5
5
|
require 'base64'
|
6
|
-
require 'logger'
|
7
|
-
@logger = Logger.new(STDOUT)
|
8
6
|
DEFAULT_EXP = Time.now.utc.to_i + 60 * 60 * 24
|
9
7
|
def tokenify(extra_payload: {})
|
10
8
|
return false if env_defined?
|
@@ -50,7 +48,7 @@ module MumsnetJWT
|
|
50
48
|
else
|
51
49
|
decoded_token
|
52
50
|
end
|
53
|
-
rescue StandardError
|
51
|
+
rescue StandardError => e
|
54
52
|
puts 'JWT ERROR: decode_token'
|
55
53
|
puts "token: #{token}"
|
56
54
|
puts "key: #{key}"
|