Improve handling of invalid login credentials.

Adds a check for "There is no account that uses those
credentials" to the list of error messages that trigger a logout.
This commit is contained in:
Hafiz 2025-07-03 16:05:06 -05:00
parent f7f8bb841c
commit d1f7012540

View file

@ -178,7 +178,8 @@ class ApiClientImpl(
|| errField.equals("invalidCredentials", ignoreCase = true)
|| msgField.contains("invalidCredentials", ignoreCase = true)
|| msgField.contains("Missing authentication headers", ignoreCase = true)
|| msgField.contains("There is no account that uses those credentials", ignoreCase = true)
if (shouldLogout) {
HabiticaBaseApplication.logout(context)
}