lib/omniauth/strategies/stripe_connect.rb in omniauth-stripe-connect-2.3.0 vs lib/omniauth/strategies/stripe_connect.rb in omniauth-stripe-connect-2.4.0
- old
+ new
@@ -26,9 +26,17 @@
{
:raw_info => raw_info
}
end
+ credentials do
+ hash = {'token' => access_token.token}
+ hash.merge!('refresh_token' => access_token.refresh_token) if access_token.refresh_token
+ hash.merge!('expires_at' => access_token.expires_at) if access_token.expires?
+ hash.merge!('expires' => access_token.expires?)
+ hash
+ end
+
def raw_info
@raw_info ||= deep_symbolize(access_token.params)
end
def redirect_params