fix: not getting refresh_token in callback response
This commit is contained in:
@@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user