Method: SparkApi::Authentication::OAuth2Impl::GrantTypePassword#refresh

Defined in:
lib/spark_api/authentication/oauth2_impl/grant_type_password.rb

#refreshObject



20
21
22
23
24
25
# File 'lib/spark_api/authentication/oauth2_impl/grant_type_password.rb', line 20

def refresh()
  GrantTypeRefresh.new(client,provider,session).authenticate
rescue ClientError => e
  SparkApi.logger.info("[oauth2] Refreshing token failed, the library will try and authenticate from scratch: #{e.message}")
  nil
end