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

Add a column to optionally store the jti of the refresh token used to generate an access token. #136

Open
idyll opened this issue Jun 9, 2023 · 2 comments

Comments

@idyll
Copy link

idyll commented Jun 9, 2023

Problem Statement

We're seeing a couple of use cases where we want to revoke a refresh token and any access tokens connected to that refresh token.

We need a way to connect the tokens and then revoke any access tokens that were generated from the refresh token.

Solution Brainstorm

To support this I imagine adding a column to the table that optionally tracks the refresh token. The refresh token could then just cascade delete its dependent tokens.

Thoughts?

It seems like a pretty clean way to revoke a refresh and any access tokens that were made from it...

@yordis
Copy link
Member

yordis commented Sep 11, 2023

PR welcome! 🙏🏻

@idyll
Copy link
Author

idyll commented Oct 23, 2023

We're just getting back around to this now. Someone will open a PR with this change once we've finished it.

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

No branches or pull requests

2 participants