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

Change ApiToken db table from Int to CUID. #346

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Change ApiToken db table from Int to CUID. #346

merged 1 commit into from
Mar 15, 2024

Conversation

sinamics
Copy link
Owner

@sinamics sinamics commented Mar 15, 2024

  • Changed the apitoken id from int to uuid.
  • Include uuid in token.
  • Verify uuid, userid during decrypt in db.

!Breaking Change - Need to verify migration if token already exist with ID = int. Might need to add a db seed for this change.

@sinamics sinamics merged commit cc13343 into main Mar 15, 2024
2 checks passed
@sinamics sinamics deleted the token_expire branch March 15, 2024 07:26
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.

2 participants