â–¸ getUserOpenid(): Promise<GetUserOpenidResponse>
description Get user’s openid for the mini program.
remark support jssdk >= 4.7.0
example
Code
Returns
Promise<GetUserOpenidResponse>
GetUserOpenidResponse
Interface: GetUserOpenidResponse
| Name | Type | Description |
|---|---|---|
| openId? | string | user’s openid(Native does not return the openId field after 4.10.0) |
| token | string | encrypted token |
Was this page helpful?
Last modified on