Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update comments (#520)

Leendert de Borstd4f0579eea13
diff --git a/apps/mobile-app/utils/WebApiService.ts b/apps/mobile-app/utils/WebApiService.ts
index 371a1c79b..093110752 100644
--- a/apps/mobile-app/utils/WebApiService.ts
+++ b/apps/mobile-app/utils/WebApiService.ts
@@ -81,7 +81,8 @@ export class WebApiService {
const response: NativeWebApiResponse = JSON.parse(responseJson);
- // Handle 401 specially to trigger session expired
+ // If native layer returns 401, the session is truly expired
+ // The native layer has already tried to refresh the token, so this is a final failure
if (response.statusCode === 401) {
logoutEventEmitter.emit('auth.errors.sessionExpired');
throw new Error(i18n.t('auth.errors.sessionExpired'));