.agents/skills/binance-agentic-wallet/references/authentication.md
Authentication flow:
auth signin --json and display the returned pairingCode to the user. The pairingCode must be displayed verbatim.urlForWeb in the browser directly (e.g., open "<urlForWeb>" on macOS). The urlForWeb must be used verbatim from the JSON response — never modify, truncate, or reconstruct it. Also display the urlForWeb as a clickable link so the user can open it manually if the browser fails to launch.pairingCode matches and confirms sign-in in the Binance Wallet App.auth verify --qrCodeId <qrCodeId> --json. This blocks until the user confirms in the Binance App (or times out after 5 minutes).auth signinStart the sign-in flow. Open the returned urlForWeb in the browser so the user can scan the QR code with the Binance Wallet App.
baw auth signin --json
No command-specific parameters.
baw auth signin --json
{
"success": true,
"data": {
"urlForWeb": "https://web3.binance.com/en/agent-login?expireAt=1772767626000&url=xxx",
"qrCodeId": "a191884d-0e05-435b-a887-336bc242fafc",
"expireAt": "1772767626000",
"pairingCode": "654321"
}
}
If already logged in:
{
"success": true,
"data": { "status": "ALREADY_CONNECTED" }
}
auth verifyPoll the QR-code scan status and wait for wallet creation to finish. This command blocks until the user confirms in the Binance App and the wallet is ready, or times out after 5 minutes.
baw auth verify --qrCodeId <qrCodeId> --json
| Parameter | Required | Default | Description |
|---|---|---|---|
--qrCodeId | Yes | — | QR code ID from auth signin --json response |
baw auth verify --qrCodeId a191884d-0e05-435b-a887-336bc242fafc --json
Success:
{
"success": true,
"data": {
"status": "SUCCESS"
}
}
Timeout, rejection, or other failure:
{
"success": false,
"error": {
"code": 10002004,
"name": "AUTH_REJECTED",
"message": "QR code does not exist or expired, please try a new code or restart the log in process."
}
}
auth signoutSign out of the wallet and clear the local session.
baw auth signout --json
No command-specific parameters.
baw auth signout --json
{
"success": true,
"data": { "status": "LOGGED_OUT" }
}