Skip to content

Commit

Permalink
Force OAuth prompt again so that a refresh token is always returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Oct 22, 2019
1 parent 7817474 commit fe9e05a
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 fe9e05a

Please sign in to comment.