Skip to content

weixin-ts / bot/src / QRLoginOptions

Interface: QRLoginOptions

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

QR login configuration

Properties

appId?

optional appId?: string

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

iLink App ID


baseUrl?

optional baseUrl?: string

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

API base URL

Default

ts
'https://ilinkai.weixin.qq.com'

botType?

optional botType?: string

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

Bot type identifier

Default

ts
'3'

maxQrRefresh?

optional maxQrRefresh?: number

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

Max QR code refresh attempts when expired

Default

ts
3

pollTimeoutMs?

optional pollTimeoutMs?: number

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

Timeout for each long-poll request in ms

Default

ts
35000

timeoutMs?

optional timeoutMs?: number

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

Timeout for the entire login flow in ms

Default

ts
300000 (5 min)

version?

optional version?: string

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

Client version string

Released under the MIT License.