Why can't WeChat Mini Programs call Wechat server directly to get user information?

just started the development of Mini Program to see Mini Program login process, why do you need Mini Program to obtain code, through wx.login and then give code to the server, and let the server request Wechat server through code to get openid and other information? Why can"t Mini Program call Wechat server directly to get user information?


encryption algorithm is required for the security of user data

Menu