SpaceyaTech / mastori

Mastori is a community-driven open-source project that aims to provide a simple and efficient blogging platform built for the Dev Community
https://www.spaceyatech.com/
22 stars 54 forks source link

customized simple JWT token claims to enable token decoding on the frontend #70

Closed sangkips closed 1 year ago

sangkips commented 1 year ago

Description

This feature is the extension of the authentication feature which had been introduced earlier. From earlier implementation, what happens after the refresh token expires? You request another token, but this time it only returns the refresh token only, So I wanted to have both refresh and token return that's why I included ROTATE_REFRESH_TOKENS:True and when you request another token I want to ensure that the refresh token used has to be blacklisted, you will not reuse the refresh token again, this is for security purposes, so we set BLACKLIST_AFTER_ROTATION: True,

Checklist: