mirror of
https://github.com/immich-app/immich.git
synced 2026-07-14 00:50:59 +00: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue