Skip to content

Implement secure refresh token sessions#32

Merged
aji70 merged 2 commits into
MyFanss:mainfrom
devoclan:secure-refresh-token-flow
Jun 18, 2026
Merged

Implement secure refresh token sessions#32
aji70 merged 2 commits into
MyFanss:mainfrom
devoclan:secure-refresh-token-flow

Conversation

@devoclan

Copy link
Copy Markdown

This PR upgrades the existing authentication system from a short-lived access token model to a production-grade session authentication architecture.

Previously, users received only an access token (access_token + expires_in) during login/signup. Once the token expired, users were required to authenticate again, resulting in poor user experience and limited session security controls.

This implementation introduces refresh token-based session management with rotation, reuse detection, per-device session tracking, and complete logout capabilities while maintaining the existing JWT access token flow.
closes #9

@aji70 aji70 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG

@aji70 aji70 merged commit a7bb086 into MyFanss:main Jun 18, 2026
1 check passed
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.

Implement Refresh Token Flow for JWT Authentication

3 participants