fix: not getting refresh_token in callback response

This commit is contained in:
Shivam Mishra
2024-06-03 12:19:18 +05:30
parent 9d4ce3964b
commit e6185536a8
@@ -9,6 +9,8 @@ class Api::V1::Accounts::Google::AuthorizationsController < Api::V1::Accounts::B
redirect_uri: "#{base_url}/google/callback",
scope: 'email profile https://mail.google.com/',
response_type: 'code',
prompt: 'consent', # the oauth flow does not return a refresh token, this is supposed to fix it
access_type: 'offline', # the default is 'online'
client_id: GlobalConfigService.load('GOOGLE_OAUTH_CLIENT_ID', nil)
}
)