Wechat obtains user information through the official account token. The Times token expires.

problem description

I need to obtain user information through the access_token and openid of the official account. Because Wechat restricts the request token,token, I cache it and then request it regularly, and then request it within the cache time. Wechat returned {"errcode": 40001, "errmsg": "invalid credential, access_token is invalid or not latest hint:}. I"m pretty sure that token has not expired, because there is a record of successful request and more than one entry. Openid also determines that it corresponds to the generation of this official account, and these are the only two

variables requested in the
document.

clipboard.png

everything I can think of has been ruled out. I don"t know if you have encountered such a situation or provided some ideas for elimination. Thank you

.
Mar.26,2022
Menu