Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue and persist a new refresh token when revoking refresh token is disabled #1449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hafezdivandari
Copy link

A bug was introduced in version 8.3.0 via #1189, which became apparent after the addition of the GrantTypeInterface::revokeRefreshTokens() function in version 9.0.

When disabling refresh token revocation with revokeRefreshTokens(false), the intention is to avoid revoking the old refresh token during an access token refresh, allowing reuse if the response isn't received (e.g., due to a network issue).

While the old refresh token is not revoked, this setting also prevents issuing a new refresh token for the refreshed access token, which is not the intended behavior.

Please refer to the related PR and the failed tests on Laravel Passport for more details: laravel/passport#1790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant