lib/spark_api/authentication/oauth2.rb in spark_api-1.2.1 vs lib/spark_api/authentication/oauth2.rb in spark_api-1.3.0
- old
+ new
@@ -157,10 +157,10 @@
@access_token = options["access_token"]
@expires_in = options["expires_in"]
@scope = options["scope"]
@refresh_token = options["refresh_token"]
@start_time = options.fetch("start_time", DateTime.now)
- @refresh_timeout = options.fetch("refresh_timeout",3600)
+ @refresh_timeout = options.fetch("refresh_timeout", 43200)
if @start_time.is_a? String
@start_time = DateTime.parse(@start_time)
end
end
# Is the user session token expired?