Skip to content

Commit

Permalink
FIX "approval_prompt='auto'" error
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix128 committed Apr 21, 2020
1 parent 2b870c5 commit 7ee1ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/GoogleClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class GoogleClientFactory
*/
public function create(): Google_Client
{
return new Google_Client();
return new Google_Client(['approval_prompt' => 'force']);
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"magento/magento2-base": "^2.3",
"magento/module-backend": "*",
"magento/module-user": "*",
"google/apiclient": "^2.2.0"
"google/apiclient": "^2.4"
},
"support": {
"issues": "https://github.com/magespecialist/m2-GoogleSignOn/issues"
Expand Down

0 comments on commit 7ee1ed9

Please sign in to comment.