Skip to content

Dynamic token management with TokenManager#61

Merged
Prakhar896 merged 13 commits intomainfrom
prakhar
Jul 19, 2024
Merged

Dynamic token management with TokenManager#61
Prakhar896 merged 13 commits intomainfrom
prakhar

Conversation

@Prakhar896
Copy link
Copy Markdown
Contributor

Overview of changes:

  • Added new TokenManager service to consolidate the signing, verification and refreshing of JWTs
  • validateToken middleware now uses TokenManager to dynamically verify tokens in requests and refresh tokens that are expiring in 10 minutes or less.
  • validateToken will insert a refreshedtoken header in the response if the token is refreshed for the frontend to replace the expiring JWT with this new JWT
  • Wrote documentation for the additions to the authentication system and how to implement it for other devs

Sensitive changes:

  • Frontend devs will need to update some of the request code as outlined in the Authentication System in the newly written ConfiguringSystem.md documentation

@Prakhar896 Prakhar896 added the enhancement New feature or request label Jul 19, 2024
Copy link
Copy Markdown
Contributor Author

@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

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

LGTU

@Prakhar896 Prakhar896 merged commit fff106e into main Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant