jwtear 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jwtear/version.rb +1 -1
- data/plugins/parse.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d16d14566a4ef0035cf36f1120930d6d8147015768bf5eafab76940587003a7
|
4
|
+
data.tar.gz: 9d44f6bee9b1541b3f1f9010ea213392353140d45d897c44fa01cea3e25d1bbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b73d0cb81751b22da4a5a9645bf02c4fb1f967bb4e3a3ee6a2a75b045cc81acbf21657eae422e0262abb043da056a02f9d526a5bb445754c716e4193fd4bd7
|
7
|
+
data.tar.gz: 14586493d374327ee19530b5d92bc2bb9bc4807bdc51f56e0becc27e58bf05f5a614227c4cac334f9cd970d10494bc20c31c132cffef89042b48d2e08f25e43a
|
data/lib/jwtear/version.rb
CHANGED
data/plugins/parse.rb
CHANGED
@@ -85,8 +85,8 @@ module JWTear
|
|
85
85
|
def print_jws_payload(payload)
|
86
86
|
print_h2 "Payload"
|
87
87
|
payload.each do |k, v|
|
88
|
-
if k == "iat" || k == "nbf"
|
89
|
-
print_h3 "#{k}" , "#{v}", "\tTIMESTAMP = #{Time.at(v)}".green
|
88
|
+
if k == "iat" || k == "nbf"
|
89
|
+
print_h3 "#{k}" , "#{v}", "\tTIMESTAMP = #{Time.at(v.to_i)}".green
|
90
90
|
elsif k == "exp"
|
91
91
|
compare_time_with_now(k,v)
|
92
92
|
else
|
@@ -99,7 +99,7 @@ module JWTear
|
|
99
99
|
if timestamp.nil?
|
100
100
|
return
|
101
101
|
end
|
102
|
-
readable_time = Time.at(timestamp)
|
102
|
+
readable_time = Time.at(timestamp.to_i)
|
103
103
|
if readable_time < Time.now
|
104
104
|
print_h3 "#{k}", "#{timestamp}", "\tTIMESTAMP = #{readable_time}\t(EXPIRED)".red
|
105
105
|
else
|