wx.login can get openid and session_key
wx.getUserInfo can get basic userInfo and encrypted signature data
Wechat"s official login process is to first obtain the openid from wx.login and store it in the database, and then wx.getUserInfo to obtain the basic user information when the user information is used. After getting the user basic information, the user information can also be stored in the database.
normally, it"s all right at this time, so why do you want to get user information based on session_key and encrypted signature? What"s the use of these?