This commit is contained in:
Micke Nordin 2024-01-13 16:24:28 +01:00
parent 74e039809d
commit e3540011cf
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -37,9 +37,9 @@ hub:
return False
access_token = auth_state['access_token']
refresh_token = auth_state['refresh_token']
token_response = name]['token_response']
token_response = auth_state['token_response']
now = time.time()
expires = self.user_dict[user.name]['token_expires']
expires = auth_state['token_expires']
if now >= expires:
print(f'Time is: {now}, token expired: {expires}')
return False