mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Simplifies authentication failure check
Removes a redundant check for invalid credentials during authentication failure, streamlining the logic.
This commit is contained in:
parent
a94d9437f3
commit
df444b4347
1 changed files with 0 additions and 1 deletions
|
|
@ -177,7 +177,6 @@ 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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue