Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5937c99eb4
|
|||
dfc5c8421a
|
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": token_info
|
||||
}
|
||||
|
||||
"details": json.dumps(token_info)
|
||||
}
|
@ -43,4 +43,4 @@ components:
|
||||
message:
|
||||
type: string
|
||||
details:
|
||||
type: object
|
||||
type: string
|
||||
|
Reference in New Issue
Block a user