Skip to content

Commit

Permalink
Merge pull request #43 from tipoff/omnia/feature/bugfix_google_does_n…
Browse files Browse the repository at this point in the history
…ot_return_refresh_token_in_some_cases

Set Approval Prompt to force to always get the refresh token
  • Loading branch information
joshtorres authored May 4, 2021
2 parents ea1d397 + fe6b854 commit 0735501
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GoogleOauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function __construct(Google_Client $googleClient, array $config)
$this->googleClient->setRedirectUri($config['redirect_uri']);
$this->googleClient->setState($config['state']);
$this->googleClient->setAccessType('offline');
$this->googleClient->setApprovalPrompt('force');
}

/**
Expand Down

0 comments on commit 0735501

Please sign in to comment.