mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-15 12:10:12 +02:00
parent
268bcf5072
commit
fcb23c2fc0
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ def token_response(token: str):
|
|||
def decodeJWT(token: str) -> dict:
|
||||
try:
|
||||
decoded_token = jwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM])
|
||||
return decoded_token if decoded_token["expires"] >= time.time() else None
|
||||
return decoded_token if decoded_token["expires"] >= time.time() * 1000 else None
|
||||
except Exception as e:
|
||||
print(f"Unable to decode jwt_token {e}")
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue