diff --git a/src/http/controllers/SmtpImapOAuth2Controller.ts b/src/http/controllers/SmtpImapOAuth2Controller.ts index 5cf9a8d..1b7b399 100644 --- a/src/http/controllers/SmtpImapOAuth2Controller.ts +++ b/src/http/controllers/SmtpImapOAuth2Controller.ts @@ -142,7 +142,7 @@ export class SmtpImapOAuth2Controller { response_type: 'code', client_id: clientId, redirect_uri: redirectUrl, - scope: encodeURIComponent(scope), + scope, access_type: 'offline', prompt: 'consent', state,