What is the correct process for Wechat's web development authorization to obtain code in exchange for back-end token?

I first detected in the general request request in the business page that if there is no token or token expires, skip to the landing page, jump to the landing page after jumping to the Wechat authorization page to get the code, return to the landing page after initiating the request to use Wechat"s code in exchange for our own token to co-exist locally, and then jump back to the business page, which feels troublesome and skips several times

Jan.08,2022
Menu