my requirement is third-party login, not the authorized login brought by WeChat Mini Programs
1. After entering the user name and password, the user clicks to log in. The backend returns token. I have stored
2 in the cache. I globally encapsulated a post request method
3. Every time I want to communicate with the backend, I send the token back for verification
4. The backend returns a status code 40101 indicating that the login page should be prompted to log in again
when the token fails. There is no problem in the Wechat development tool test
but there will be problems on the real machine
questions are as follows:
is there something wrong with me here?