change structure of permissions output
This commit is contained in:
@@ -2,6 +2,8 @@ from rest_framework_simplejwt.tokens import AccessToken
|
||||
|
||||
|
||||
def get_token_jti(token_str):
|
||||
""" get generated jwt id (jti) for every token """
|
||||
|
||||
try:
|
||||
token = AccessToken(token_str)
|
||||
return token['jti'], token['user_id']
|
||||
|
||||
Reference in New Issue
Block a user