lib/omniauth/strategies/auth0.rb in omniauth-auth0-1.4.0 vs lib/omniauth/strategies/auth0.rb in omniauth-auth0-1.4.1
- old
+ new
@@ -44,10 +44,11 @@
hash = {'token' => access_token.token}
hash.merge!('expires' => true)
if access_token.params
hash.merge!('id_token' => access_token.params['id_token'])
hash.merge!('token_type' => access_token.params['token_type'])
+ hash.merge!('refresh_token' => access_token.refresh_token) if access_token.refresh_token
end
hash
end
uid { raw_info["user_id"] }
@@ -72,11 +73,11 @@
@raw_info ||= access_token.get(options.client_options.userinfo_url).parsed
end
private
def client_info_querystring
- client_info = JSON.dump({name: 'omniauth-auth0', version: ::Auth0::VERSION})
+ client_info = JSON.dump({name: 'omniauth-auth0', version: OmniAuth::Auth0::VERSION})
"auth0Client=" + Base64.urlsafe_encode64(client_info)
end
end
end
-end
\ No newline at end of file
+end