Skip to content

feat(security): Adds last usage date to access tokens #4769

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

Conversation

maximilian-krauss
Copy link
Contributor

@maximilian-krauss maximilian-krauss commented Jun 10, 2025

CleanShot 2025-06-10 at 13 37 43@2x

What does this do?

This PR adds a last usage date to access tokens, because after login from several browsers and devices, it's hard to tell which access tokens are still being used.

It adds one write after each authenticated API operation which could add stress to the database. I tested with sqlite and mysql without any notable performance issues.

✌️

@maximilian-krauss maximilian-krauss force-pushed the feat/adds-last-usage-to-access-tokens branch 4 times, most recently from 5403d50 to bc8225e Compare June 16, 2025 12:50
@maximilian-krauss maximilian-krauss force-pushed the feat/adds-last-usage-to-access-tokens branch from bc8225e to bf9568c Compare June 19, 2025 13:13
@maximilian-krauss maximilian-krauss force-pushed the feat/adds-last-usage-to-access-tokens branch from bf9568c to 67e30b8 Compare June 19, 2025 13:16
@boojack
Copy link
Member

boojack commented Jun 20, 2025

@maximilian-krauss We are refactoring the auth logic, including designing a common session that will include information such as the last used time, etc. I'll let you know once it's done. Thanks for the contribution.

@boojack
Copy link
Member

boojack commented Jun 23, 2025

Some updates:

image

@boojack boojack closed this Jun 23, 2025
@maximilian-krauss
Copy link
Contributor Author

Nice! thanks for adding it 🙂

@maximilian-krauss maximilian-krauss deleted the feat/adds-last-usage-to-access-tokens branch June 23, 2025 13:52
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