change testoutput format

This commit is contained in:
Wolfgang Hottgenroth 2021-06-17 19:10:18 +02:00
parent dfc5c8421a
commit 5937c99eb4
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469

View File

@ -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)
}