Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wechat Error: please get new code! #69

Open
sliontc opened this issue Nov 1, 2021 · 4 comments
Open

wechat Error: please get new code! #69

sliontc opened this issue Nov 1, 2021 · 4 comments

Comments

@sliontc
Copy link

sliontc commented Nov 1, 2021

I sometimes got the error when get access token. Could you advise how to auto get a new code in this situation?

@JasonBoy
Copy link
Owner

JasonBoy commented Nov 2, 2021

code in OAuth can only be received from WeChat app, if it has error which means token is expired or something else, you should get the code automatically in your application code

@sliontc
Copy link
Author

sliontc commented Nov 2, 2021

So did you mean just redirect to the wechat user api url?

@JasonBoy
Copy link
Owner

JasonBoy commented Nov 2, 2021

redirect to the oAuth confirm page, and get the code from url again

@sliontc
Copy link
Author

sliontc commented Nov 2, 2021

Ok, I just use base user info, so just redirect to the authorization url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants