There was a project before that was developed based on the public account. When the user authorizes the login, the data will be initialized
Now we need to make a small program. How to write this login idea? The user data on both sides needs to be synchronized
If the data on both sides are synchronized, you need to rely on an open platform and use UnionID.
For mini program login, the official document wx.login function description is very detailed
https://mp.weixin.qq.com/debu...