Skip to content

Commit 70a1562

Browse files
authored
Force UserAgent to bypass Google browser deprecation (#198)
* Force UserAgent to bypass Google browser deprecation * Add comment for userAgent option
1 parent 94a2bce commit 70a1562

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/controllers/auth.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ class AuthController {
8989
'&scope=email profile' +
9090
'&response_type=code' +
9191
'&redirect_uri=' + process.env.GOOGLE_REDIRECT_URI +
92-
'&state=' + channel // state parameter will be passed to the redirect_uri
92+
'&state=' + channel, // state parameter will be passed to the redirect_uri
93+
{
94+
userAgent: 'Chrome' // bypass Google check of outdated browser
95+
}
9396
);
9497

9598
/**

0 commit comments

Comments
 (0)