We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PHP 版本:5.6.30 overtrue/wechat 版本:3.2.7
微信网页授权,如果授权成功后用户点击返回按钮,会报“40029 不合法的oauth_code 错误”,因为code只能用一次,怎么在code无效时自动重新授权,而不是报错。用set_exception_handler不太合适,改源码就更不好了。
The text was updated successfully, but these errors were encountered:
我在文档上说过啊,授权完成后要用 301 跳转到业务页面而不是直接显示页面
Sorry, something went wrong.
跳转到业务页面了,是正常的,问题在于在业务页面用户点击返回,就到了那个有code参数的链接,就会报code无效。安卓手机更容易出现这个错误。
history.replaceState
No branches or pull requests
我用的环境
PHP 版本:5.6.30
overtrue/wechat 版本:3.2.7
问题及现象
微信网页授权,如果授权成功后用户点击返回按钮,会报“40029 不合法的oauth_code 错误”,因为code只能用一次,怎么在code无效时自动重新授权,而不是报错。用set_exception_handler不太合适,改源码就更不好了。
The text was updated successfully, but these errors were encountered: