mirror of
https://github.com/norohind/FDEV-CAPI-Handler.git
synced 2025-06-06 02:13:30 +03:00
fix prev commit
This commit is contained in:
parent
6a09c5b260
commit
9e56885a9f
@ -125,7 +125,7 @@ class CAPIAuthorizer:
|
|||||||
|
|
||||||
msg['state'] = state
|
msg['state'] = state
|
||||||
|
|
||||||
if int(time.time()) < int(row['timestamp_got_expires_in']) + int(row['expires_in'] - 400) and not force_refresh:
|
if int(time.time()) < int(row['timestamp_got_expires_in']) + int(row['expires_in']) - 400 and not force_refresh:
|
||||||
# current time < when we got token + token lifetime - 400, 400 is need just to refresh token on 400 secs
|
# current time < when we got token + token lifetime - 400, 400 is need just to refresh token on 400 secs
|
||||||
# earlier than lifetime stated by FDEV, for safe
|
# earlier than lifetime stated by FDEV, for safe
|
||||||
msg['status'] = 'ok'
|
msg['status'] = 'ok'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user