Is it okay to log in using wx.getUserInfo?

after the wx.getUserInfo of Mini Program api is successfully obtained, the official encryptedData, document is returned to show that the decrypted data of encryptedData is

.
{
    "openId": "OPENID",
    "nickName": "NICKNAME",
    "gender": GENDER,
    "city": "CITY",
    "province": "PROVINCE",
    "country": "COUNTRY",
    "avatarUrl": "AVATARURL",
    "unionId": "UNIONID",
    "watermark":
    {
        "appid":"APPID",
    "timestamp":TIMESTAMP
    }
}

can you get openid, so that you don"t need to use wx.login ()


the document is clearly written https://developers.weixin.qq.


you have to wx.login ()

first.
Menu