Note for when getting auth token fails

This commit is contained in:
Daniel Krol 2022-07-29 14:33:19 -04:00
parent 4ecf8538be
commit e6f5628a94

View file

@ -404,6 +404,11 @@ class Client():
self.device_id,
)
if not token:
# In a real client, this is where you may consider
# a) Offering to have the user change their password
# b) Try update_secrets() and get_auth_token() silently, for the unlikely case that the user changed their password back and forth
print ("Failed to get the auth token. Do you need to update this client's password (set_local_password())?")
print ("Or, in the off-chance the user changed their password back and forth, try updating secrets (update_secrets()) to get the latest salt seed.")
return
self.auth_token = token
print ("Got auth token: ", self.auth_token)