fix(web): restore creds before auth check

main
Peter Steinberger 2025-12-22 21:40:44 +00:00
parent e403f8b620
commit 9118884e92
1 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,8 @@ export function formatError(err: unknown): string {
} }
export async function webAuthExists() { export async function webAuthExists() {
const sessionLogger = getChildLogger({ module: "web-session" });
maybeRestoreCredsFromBackup(sessionLogger);
try { try {
await fs.access(WA_WEB_AUTH_DIR); await fs.access(WA_WEB_AUTH_DIR);
} catch { } catch {