bn.getUserOpenid
▸ getUserOpenid(): Promise
<GetUserOpenidResponse
>
description
Get user’s openid for the mini program.
remark
support jssdk >= 4.7.0
example
Returns
Promise
<GetUserOpenidResponse
>
GetUserOpenidResponse
#
Interface: GetUserOpenidResponseName | Type | Description |
---|---|---|
openId | string | user’s openid(Native does not return the openId field after 4.10.0) |
token | string | encrypted token |