mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +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")
|
||||
exp = decoded.get("exp")
|
||||
|
||||
if jti:
|
||||
if jti and exp:
|
||||
ttl = exp - int(
|
||||
datetime.now(UTC).timestamp()
|
||||
) # Calculate time-to-live for the token
|
||||
|
|
|
|||
Loading…
Reference in a new issue