Web: simplify logout message
parent
e34d0d69aa
commit
62c54cd47c
|
|
@ -163,11 +163,7 @@ export async function logoutWeb(runtime: RuntimeEnv = defaultRuntime) {
|
||||||
await fs.rm(WA_WEB_AUTH_DIR, { recursive: true, force: true });
|
await fs.rm(WA_WEB_AUTH_DIR, { recursive: true, force: true });
|
||||||
// Also drop session store to clear lingering per-sender state after logout.
|
// Also drop session store to clear lingering per-sender state after logout.
|
||||||
await fs.rm(SESSION_STORE_DEFAULT, { force: true });
|
await fs.rm(SESSION_STORE_DEFAULT, { force: true });
|
||||||
runtime.log(
|
runtime.log(success("Cleared WhatsApp Web credentials."));
|
||||||
success(
|
|
||||||
"Cleared WhatsApp Web credentials. Run `warelay login --provider web` to relink.",
|
|
||||||
),
|
|
||||||
);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue