Skip to content

weixin-ts / bot/src / QRPollCallbacks

Interface: QRPollCallbacks

Defined in: bot/src/auth/login.ts:48

Callbacks during QR polling

Properties

onQrRefresh?

optional onQrRefresh?: (newQrcodeUrl) => void

Defined in: bot/src/auth/login.ts:54

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

Parameters

newQrcodeUrl

string

Returns

void


onRedirect?

optional onRedirect?: (newHost) => void

Defined in: bot/src/auth/login.ts:52

Called on IDC redirect (informational)

Parameters

newHost

string

Returns

void


onScanned?

optional onScanned?: () => void

Defined in: bot/src/auth/login.ts:50

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

Returns

void

Released under the MIT License.