From fe9e05ae991433042fec69f74de7a2550582853e Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 22 Oct 2019 20:25:08 +0200 Subject: [PATCH] Force OAuth prompt again so that a refresh token is always returned. --- includes/Core/Authentication/Clients/OAuth_Client.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Core/Authentication/Clients/OAuth_Client.php b/includes/Core/Authentication/Clients/OAuth_Client.php index 5f138826208..ac1b41a4e43 100644 --- a/includes/Core/Authentication/Clients/OAuth_Client.php +++ b/includes/Core/Authentication/Clients/OAuth_Client.php @@ -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() );