Skip to content

Commit

Permalink
Force UserAgent to bypass Google browser deprecation (#198)
Browse files Browse the repository at this point in the history
* Force UserAgent to bypass Google browser deprecation

* Add comment for userAgent option
  • Loading branch information
n0str authored Sep 23, 2020
1 parent 94a2bce commit 70a1562
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ class AuthController {
'&scope=email profile' +
'&response_type=code' +
'&redirect_uri=' + process.env.GOOGLE_REDIRECT_URI +
'&state=' + channel // state parameter will be passed to the redirect_uri
'&state=' + channel, // state parameter will be passed to the redirect_uri
{
userAgent: 'Chrome' // bypass Google check of outdated browser
}
);

/**
Expand Down

0 comments on commit 70a1562

Please sign in to comment.