Skip to content

Commit c928e55

Browse files
fix(auth): restore offline auth capabilities
1 parent f8e0894 commit c928e55

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎frontend/js/app.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,8 @@ async function verifyStoredAuthSession() {
344344
}
345345
return null;
346346
} catch (error) {
347-
console.warn('Auth verification could not reach the server; clearing local session.', error);
348-
clearStoredAuthState();
349-
return null;
347+
console.warn('Auth verification failed (network error); using cached session state if available.', error);
348+
return storedUser;
350349
}
351350
})();
352351

0 commit comments

Comments
 (0)