跳到主要内容

bn.getBackgroundFetchToken

getBackgroundFetchToken(): Promise<SetFetchTokenOptions>

description Gets the custom login state that has been set. If not, the promise will be rejected.

example

const { token } = bn.getBackgroundFetchToken()

Returns

Promise<SetFetchTokenOptions>


Interface: SetFetchTokenOptions

NameTypeDescription
tokenstringCustom login states