Logout even if the logout response doesnt return ok
This commit is contained in:
@@ -61,7 +61,9 @@ class MangaDexLoginHelper(val authServiceLazy: Lazy<MangaDexAuthService>, val pr
|
||||
return login(username, password)
|
||||
}
|
||||
|
||||
suspend fun logout(): Boolean {
|
||||
return authService.logout().result == "ok"
|
||||
suspend fun logout() {
|
||||
return withIOContext {
|
||||
authService.logout()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user