Return correct format
This commit is contained in:
parent
d790197e19
commit
6c28bffa49
|
@ -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}')
|
||||
|
|
Loading…
Reference in a new issue