Closed cnguu closed 4 years ago
简单看了一下,这个应该是 github 的问题,有空格 %20
就会报错:
%21
没事: https://github.com/login/oauth/authorize?client_id=70b4502bebd5184a14e6&redirect_uri=https%3A%2F%2Fgleehub.com%2Fab%21out.html&scope=public_repo&state=Vssue%20
不行: https://github.com/login/oauth/authorize?client_id=70b4502bebd5184a14e6&redirect_uri=https%3A%2F%2Fgleehub.com%2Fab%20out.html&scope=public_repo&state=Vssue还是建议避免在 uri 中出现这些字符吧,文件名还是纯英文之类的比较好
噢对了,用了 vuepress-plugin-vssue 之后就不用 ClientOnly
了,插件里已经帮你加了
@meteorlxy 蟹蟹,已修复,使用中文的原因
我在我的网站中测试过
失败授权跳转:https://gleehub.com/?error=redirect_uri_mismatch&error_description=The%20redirect_uri%20MUST%20match%20the%20registered%20callback%20URL%20for%20this%20application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-authorization-request-errors%2F%23redirect-uri-mismatch&state=Vssue
我猜测这是空格或者中文或者其它字符引起的
vuepress 中的使用: