You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using https://developers.google.com/oauthplayground, I confirmed that this library removes the refresh_token after the first use, regardless of the always_issue_new_refresh_token and unset_refresh_token_after_use settings e.g.
The problem seems to be, that the config option 'always_issue_new_refresh_token' is not respected in /vendor/bshaffer/oauth2-server-php/src/OAuth2/GrantType/RefreshToken.php
Another (temporary) solution to the problem is therefore to change line 144 from: $issueNewRefreshToken = $this->config['always_issue_new_refresh_token'];
to
$issueNewRefreshToken = true;
It would be nice to have the code respect the config-options.
Using https://developers.google.com/oauthplayground, I confirmed that this library removes the refresh_token after the first use, regardless of the always_issue_new_refresh_token and unset_refresh_token_after_use settings e.g.
I eventually worked around this by commenting out the code in
public function unsetRefreshToken($refresh_token)
and I will periodically remove expired access tokens from the DB with a script. Yuck.
The text was updated successfully, but these errors were encountered: