mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
fix(web): restore creds before auth check
This commit is contained in:
@@ -307,6 +307,8 @@ export function formatError(err: unknown): string {
|
||||
}
|
||||
|
||||
export async function webAuthExists() {
|
||||
const sessionLogger = getChildLogger({ module: "web-session" });
|
||||
maybeRestoreCredsFromBackup(sessionLogger);
|
||||
try {
|
||||
await fs.access(WA_WEB_AUTH_DIR);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user