Skip to content

weixin-ts / bot/src / LoginCallbacks

Interface: LoginCallbacks

Defined in: bot/src/types.ts:299

Callbacks for the login flow

Properties

onQrCode?

optional onQrCode?: (qrcodeUrl) => void

Defined in: bot/src/types.ts:301

Called with QR URL when login requires scanning

Parameters

qrcodeUrl

string

Returns

void


onQrRefresh?

optional onQrRefresh?: (newQrcodeUrl) => void

Defined in: bot/src/types.ts:305

Called when QR code is refreshed after expiry (new URL)

Parameters

newQrcodeUrl

string

Returns

void


onScanned?

optional onScanned?: () => void

Defined in: bot/src/types.ts:303

Called when the QR code is scanned (user needs to confirm in WeChat)

Returns

void

Released under the MIT License.