nm-gigya 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b5ee7e02cbee66e34623bd563b72e190a353813
4
- data.tar.gz: e56db309a0c6e0b6228ace8b4e524cc142cae19f
3
+ metadata.gz: 158cb06fa4fad8493c7e615a86c819204a7aa86b
4
+ data.tar.gz: 193676bfef6af691295381e9393d09907f02d68b
5
5
  SHA512:
6
- metadata.gz: 9f1eb0de5d1e3d08ff2876f660c7dd0747c94b8cd1dc74ea1d574ac4cb316f9590b62d52936473f9288cbe255f81cb739095cf7b218779705d6a93f54afb89c5
7
- data.tar.gz: 14aaa95b1e75a442c1268cacdd2229fc25d02dd116ba2b605341dc41c82de7a6d346b59deb69ef832a8a302ba65b9c269893839413d80ce4a35cf231e1722dea
6
+ metadata.gz: 8562a605078f8787de737ca358ff6a335ba4ff6a0bf09007f91be06f9a20aefb2848d659cfc07a22cf43346e00e9c370d7037f32f6cc1fef70ab06c6a91f218b
7
+ data.tar.gz: 82f6e2cd41de7d15d80ba594c180d118d7daf53a5b118dd7ba8aa64591b4774ef7b9ef0649c5d1a960aa35df825820059c28b7127ced0095358d60ea8faac5f0
@@ -225,7 +225,7 @@ module Gigya
225
225
  data_options["sub"] ||=SecureRandom.uuid
226
226
  data_options["apiKey"] ||= (@opts[:api_key] || "no_api_key")
227
227
  data_options["iss"] ||= "https://fidm.gigya.com/jwt/#{data_options["apiKey"]}/"
228
- data_options["iat"] ||= Time.now - 10.seconds.to_i
228
+ data_options["iat"] ||= (Time.now - 10.seconds).to_i
229
229
  data_options["exp"] = (Time.now + expiration).to_i unless expiration.nil?
230
230
  data_options["exp"] ||= (Time.now + (60 * 60)).to_i
231
231
  data_options["firstName"] ||= "Jim#{rand(10000000)}"
@@ -140,7 +140,7 @@ module Gigya
140
140
  def needs_token_refresh_for_time?
141
141
  return false if @@gigya_jwt_refresh_time.nil?
142
142
 
143
- issue_time = Time.at(@gigya_jwt_info["iat"])
143
+ issue_time = Time.at(@gigya_jwt_info["iat"].to_i)
144
144
 
145
145
  return issue_time + @@gigya_jwt_refresh_time < Time.now
146
146
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nm-gigya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bartlett