跳到主要内容

bn.login

login(): Promise<LoginResult>

description Gets the login credential (code), which is then used to exchange for the user login status information, including the unique identifier (openid) of the user and the session key (session_key) of the current login.

Returns

Promise<LoginResult>

login information


Interface: LoginResult

NameTypeDescription
codestringThe authorization code