change testoutput format
This commit is contained in:
parent
dfc5c8421a
commit
5937c99eb4
7
auth.py
7
auth.py
@ -2,7 +2,7 @@ from jose import JWTError, jwt
|
||||
import werkzeug
|
||||
import os
|
||||
from loguru import logger
|
||||
|
||||
import json
|
||||
|
||||
JWT_PUB_KEY = ""
|
||||
try:
|
||||
@ -23,6 +23,5 @@ def decodeToken(token):
|
||||
def testToken(user, token_info):
|
||||
return {
|
||||
"message": f"You are user_id {user} and the provided token has been signed by this issuers. Fine.",
|
||||
"details": JSON.stringify(token_info)
|
||||
}
|
||||
|
||||
"details": json.dumps(token_info)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user