Skip to content

weixin-ts / bot/src / LoginCallbacks

Interface: LoginCallbacks ​

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

Callbacks for the login flow

Properties ​

onQrCode? ​

optional onQrCode?: (qrcodeUrl) => void

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

Called with QR URL when login requires scanning

Parameters ​

qrcodeUrl ​

string

Returns ​

void


onQrRefresh? ​

optional onQrRefresh?: (newQrcodeUrl) => void

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

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:322

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

Returns ​

void

Released under the MIT License.