Skip to content

Start refreshing refresh tokens#126

Merged
ChrisLovering merged 2 commits into
mainfrom
refreshing-refresh-tokens
Dec 30, 2021
Merged

Start refreshing refresh tokens#126
ChrisLovering merged 2 commits into
mainfrom
refreshing-refresh-tokens

Conversation

@Bluenix2
Copy link
Copy Markdown
Contributor

This pull request means that refresh tokes now refresh when generating new access tokens.

Currently I have set the lifetime of a refresh token to be the lifetime of 6 access tokens (6 hours). This means that 6 hours after a refresh token has been generated, it will be refresh when trying to generate a new access token. When this happens the old is invalidated, but this is not done automatically. So you can wait several days, and the refresh token won't be invalidated until you try to generate an access token to use.

Refresh tokens still don't automatically get invalidated and expire, but when a request to generate a new access token is made the refresh token is potentially also renewed.
@Bluenix2 Bluenix2 added area: back-end type: enhancement Changes or improvements to existing features labels Aug 13, 2021
@ChrisLovering ChrisLovering merged commit 98a9159 into main Dec 30, 2021
@ChrisLovering ChrisLovering deleted the refreshing-refresh-tokens branch December 30, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: back-end type: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants