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:
Brandon Wees 2025-08-04 16:41:58 -05:00 committed by GitHub
parent 278668b8c5
commit 094e3a2757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));
}