feat: implement automated refresh token cleanup and schema optimization - #1
Closed
udaycodespace wants to merge 1 commit into
Closed
feat: implement automated refresh token cleanup and schema optimization#1udaycodespace wants to merge 1 commit into
udaycodespace wants to merge 1 commit into
Conversation
|
Hi @udaycodespace, Thanks for opening this pull request. This PR has been automatically classified based on the files modified. Applied Labels
Primary Review Area
Reviewer@Harxhit has been identified as the primary reviewer for this pull request. If you have any questions regarding the affected area or implementation details, feel free to reach out to the assigned reviewer. Thank you for your contribution! |
CI — All Checks PassedBackend — PASS
Mobile — SKIP
Web — SKIP
Last updated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements automated refresh token cleanup for expired and revoked refresh tokens.
Changes made
Area | Change -- | -- Database | Added indexes on expiresAt and revokedAt for faster cleanup queries Service | Added refresh token cleanup service Plugin | Added scheduled cleanup Fastify plugin Startup | Runs cleanup on application startup Configuration | Added REFRESH_TOKEN_CLEANUP_INTERVAL_MS Logging | Added cleanup success/failure logs Shutdown | Clears scheduler on application shutdown Tests | Added service and plugin test coverageScreenshots
Files changed
Test execution
TypeScript validation
Clean git status
Note
The issue requests a demo video showing refresh token cleanup behavior.
For now, I have attached validation screenshots while the implementation is being reviewed. If additional changes are requested during review, I will address them first and then record a final demo video showing the complete cleanup flow.