Skip to content

Commit

Permalink
Merge pull request #693 from google/fix/690-force-oauth-prompt
Browse files Browse the repository at this point in the history
Force OAuth prompt again so that a refresh token is always returned
  • Loading branch information
felixarntz authored Oct 22, 2019
2 parents 70263f9 + 0a779ea commit 6f4c88e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/Core/Authentication/Clients/OAuth_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public function get_client() {

// Offline access so we can access the refresh token even when the user is logged out.
$this->google_client->setAccessType( 'offline' );
$this->google_client->setPrompt( 'consent' );

$this->google_client->setRedirectUri( $this->get_redirect_uri() );

Expand Down

0 comments on commit 6f4c88e

Please sign in to comment.