Open
Description
The simple JWT document says we can customize token claims from TokenObtainPairSerializer
-> get_token
class method.
However, if we customize the token according to the above document and enable the blacklist app, the token stored in the OutstandingToken
model is different. Because the BlacklistMixin
-> for_user
is executed before modifying the token.
If the tokens are different, it will be difficult in identifying the token while blacklisting.
Reference:
djangorestframework-simplejwt/rest_framework_simplejwt/tokens.py
Lines 278 to 284 in aa077a4
Metadata
Metadata
Assignees
Labels
No labels