


What is the difference between mini program login and authorization?
Mar 27, 2020 am 10:23 AMWhat is the difference between Mini Program login and authorization?
We can see from the official documentation of the Mini Program that the authorization operation requires wx. authorize() The interface is completed. The following is the description of the authorization operation in the document:
Initiate an authorization request to the user in advance. After the call is made, a pop-up window will immediately ask the user whether they agree to authorize the applet to use a certain function or obtain some of the user's data, but the corresponding interface will not actually be called. If the user has previously agreed to the authorization, no pop-up window will appear and success will be returned directly.
1. In other words, the authorization process actually only obtains the access permission to operate the wx interface on the front end of the mini program. This process will not actually have anything to do with the developer server.
2. Login is to let the developer server know who the current user is? In traditional web applications, we must ask users to enter their account number and password to log in. But in the WeChat application, we can complete this operation through the WeChat server and obtain the unique identifier (openId) corresponding to the current user.
Note: The openId of each user is unique to each WeChat application (official account or mini program), which means that a user will have different openIds to different WeChat applications
PHP Chinese website, a large number of free small program development tutorials, welcome to learn!
The above is the detailed content of What is the difference between mini program login and authorization?. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What should I do if I download other people's wallpapers after logging into another account on wallpaperengine?

How do I log in to my previous account on Xiaohongshu? What should I do if the original number is lost after it is reconnected?

Discuz background login problem solution revealed

'Onmyoji' Ibaraki Doji's collection skin can be obtained as soon as you log in, and the new Zen Heart Cloud Mirror skin will be launched soon!

How to log in to Kuaishou PC version - How to log in to Kuaishou PC version

How to upgrade win10 enterprise version 2016 long-term service version to professional version

How to log in to two devices on Quark

115 Netdisk web version login entrance
