mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:31:23 +00:00
feat(cli): move provider login/logout
This commit is contained in:
@@ -169,7 +169,9 @@ export async function createWaSocket(
|
||||
const status = getStatusCode(lastDisconnect?.error);
|
||||
if (status === DisconnectReason.loggedOut) {
|
||||
console.error(
|
||||
danger("WhatsApp session logged out. Run: clawdbot login"),
|
||||
danger(
|
||||
"WhatsApp session logged out. Run: clawdbot providers login",
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -454,7 +456,7 @@ export async function pickProvider(
|
||||
const hasWeb = await webAuthExists(authDir);
|
||||
if (!hasWeb) {
|
||||
throw new Error(
|
||||
"No WhatsApp Web session found. Run `clawdbot login --verbose` to link.",
|
||||
"No WhatsApp Web session found. Run `clawdbot providers login --verbose` to link.",
|
||||
);
|
||||
}
|
||||
return choice;
|
||||
|
||||
Reference in New Issue
Block a user