Skip to content

Conversation

@ArhamSyed
Copy link

Key Changes:

Reduced JWT access token validity to around 15 minutes.

Added a new RefreshToken entity with fields: token, user, expiryDate.

Updated AuthService.login and handleGoogleOAuth methods to generate and store refresh tokens.

Refresh token is returned in a secure httpOnly cookie.

Added new API endpoint /api/auth/refresh to validate the refresh token and issue a new access token.

Added logout endpoint that deletes/inactivates the stored refresh token.

Improved overall authentication configuration to support token renewal pattern.

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.

1 participant