Official WeChat authorization interface

API call address

{域名地址}/api/wechat/auth

illustrate:{域名地址}You need to replace it with your domain address, such as/api/wechat/auth

Calling methods

This interface is the WeChat login web page authorization call interface, which needs to be opened in WeChat. This interface is a jump interface. SeeWeb page authorization

GET

Request parameters

Field name type Required illustrate
state string no When state = code, it is to obtain the verification code, and other values ​​have not been set to function

Return parameters

It will first jump to the WeChat authorization interface. After the authorization is completed, a pop-up window will be output. ifstate = code, a verification code information will be sent to the WeChat official account window

Error message

If there is an error, an error window will pop up