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(auth): add unique constraint on refresh_token_id in access_tokens table #4608

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

axiomofjoy
Copy link
Contributor

Each refresh token should correspond to exactly one access token.

resolves #4607

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Sep 12, 2024
@axiomofjoy axiomofjoy changed the base branch from main to auth September 12, 2024 22:46
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Sep 12, 2024
@axiomofjoy axiomofjoy force-pushed the xander/refresh-token-id-unique branch from d0d05b4 to cc78a74 Compare September 12, 2024 23:07
@axiomofjoy axiomofjoy merged commit 3174195 into auth Sep 12, 2024
13 of 16 checks passed
@axiomofjoy axiomofjoy deleted the xander/refresh-token-id-unique branch September 12, 2024 23:31
RogerHYang pushed a commit that referenced this pull request Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[auth][db] add unique constraint to foreign key relation between access and refresh tokens
2 participants