Return correct format

This commit is contained in:
Micke Nordin 2024-01-15 14:44:33 +01:00
parent d790197e19
commit 6c28bffa49
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE

View file

@ -83,9 +83,9 @@ hub:
auth_state['token_expires'] = now + token_response['expires_in']
auth_state['token_response'] = token_response
if debug:
print(f'Successfully refreshed token for {user}')
print(f'auth_state for {user}: {auth_state}')
return auth_state
print(f'Successfully refreshed token for {user.name}')
print(f'auth_state for {user.name}: {auth_state}')
return {'name': user.name, 'auth_state': auth_state}
except Exception as e:
if debug:
print(f'Failed to refresh token for {user}')