mirror of
https://github.com/zebrajr/immich.git
synced 2025-12-06 12:20:54 +01: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 {
|
||||
if (_apiService.apiClient.basePath.isEmpty) return;
|
||||
|
||||
await _apiService.authenticationApi.logout().timeout(const Duration(seconds: 7));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user