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

Release 2.1 Changing the mechanism for saving and deleting Refresh Token #14

Merged
merged 8 commits into from
Nov 29, 2023

Conversation

Horat1us
Copy link
Member

The RefreshToken saving mechanism has been changed so that the tuple of access token and uuid is saved in the storage instead of the access token value (see RefreshTokenValueEncoder).
This way, when access keys are deleted, it will be possible to return the userId even if the access token is no longer available. As a consequence, it is possible to update the refresh/access pair when the access token is already out of date.

…er id so refresh token could be used to generate new access token even if access token is no longer available in storage
…e stored in storage instead of storing just access token value
Changed create method now store encoded tuple of RefreshTokenValue instead of access token value.
Changed del method so userId will be returned even if access token is no longer available in storage.
@Horat1us Horat1us self-assigned this Nov 29, 2023
Copy link

composer.lock

Package changes

Package Operation From To About
ramsey/uuid upgrade 3.8.0 3.9.7 diff

Settings · Docs · Powered by Private Packagist

@Horat1us Horat1us merged commit d31bd6b into master Nov 29, 2023
2 checks passed
@Horat1us Horat1us deleted the feature/refresh-token-value branch November 29, 2023 17:35
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.

None yet

1 participant