mirror of
https://github.com/immich-app/immich.git
synced 2025-08-07 09:04:09 -04:00
fix(mobile): cleanly handle logout when no host is set (#20521)
* fix: cleanly handle logging out when no host is set on API * move conditional to auth_api repo
This commit is contained in:
parent
278668b8c5
commit
094e3a2757
@ -25,6 +25,8 @@ class AuthApiRepository extends ApiRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> logout() async {
|
Future<void> logout() async {
|
||||||
|
if (_apiService.apiClient.basePath.isEmpty) return;
|
||||||
|
|
||||||
await _apiService.authenticationApi.logout().timeout(const Duration(seconds: 7));
|
await _apiService.authenticationApi.logout().timeout(const Duration(seconds: 7));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user