mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
0a14196afb
commit
5388cc1bc6
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ async def invalidate_token(request, token):
|
||||||
jti = decoded.get("jti")
|
jti = decoded.get("jti")
|
||||||
exp = decoded.get("exp")
|
exp = decoded.get("exp")
|
||||||
|
|
||||||
if jti:
|
if jti and exp:
|
||||||
ttl = exp - int(
|
ttl = exp - int(
|
||||||
datetime.now(UTC).timestamp()
|
datetime.now(UTC).timestamp()
|
||||||
) # Calculate time-to-live for the token
|
) # Calculate time-to-live for the token
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue