跳到主要内容

bn.setBackgroundFetchToken

setBackgroundFetchToken(options): Promise<{}>

description Set the custom login state, in the periodic pull data, to make third-party server verification request authorized.

example

await bn.setBackgroundFetchToken({ token: 'token' })

Parameters

NameType
optionsSetFetchTokenOptions

Returns

Promise<{}>


Interface: SetFetchTokenOptions

NameTypeDescription
tokenstringCustom login states