lib/bootic_client/strategies/authorized.rb in bootic_client-0.0.6 vs lib/bootic_client/strategies/authorized.rb in bootic_client-0.0.7

- old
+ new

@@ -9,13 +9,13 @@ def validate!(options) raise "options MUST include access_token" unless options[:access_token] end def get_token - # The JWT grant must have an expiration date, in seconds since the epoch. + # The JWT grant must have an expiration date, in seconds since the epoch. # For most cases a few seconds should be enough. - exp = Time.now.utc.to_i + 5 + exp = Time.now.utc.to_i + 30 # Use the "assertion" flow to exchange the JWT grant for an access token access_token = auth.assertion.get_token( hmac_secret: config.client_secret, iss: config.client_id, @@ -33,6 +33,6 @@ end end strategies[:authorized] = Strategies::Authorized -end \ No newline at end of file +end