encrypt username instead of user_id
hosseincodes opened this issue · comments
my decoded access token is the following JSON:
exp: ??
iat: ??
jti: "??"
token_type: "access"
user_id: 3
is there a way i can encrypt username instead of user id?
i found the solution on here:
https://django-rest-framework-simplejwt.readthedocs.io/en/latest/customizing_token_claims.html