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

在做jwt的decode操作的时候一直在报错,可能是什么原因呢 #29

Open
bafeiyu opened this issue Jun 9, 2022 · 6 comments

Comments

@bafeiyu
Copy link

bafeiyu commented Jun 9, 2022

错误内容如下
Token Signature could not be verified.

@bafeiyu
Copy link
Author

bafeiyu commented Jun 10, 2022

在包里面的第二个Token signature mismatch异常抛出来的,代码没看明白验证的是什么

@bafeiyu
Copy link
Author

bafeiyu commented Jun 10, 2022

1654826853654

@bafeiyu
Copy link
Author

bafeiyu commented Jun 10, 2022

经排查,最后加密用的key不是我的配置文件里面的key

@bafeiyu
Copy link
Author

bafeiyu commented Jun 10, 2022

image
把这个decode去掉就不报错了

@bafeiyu
Copy link
Author

bafeiyu commented Jun 10, 2022

配置文件难道还需要再encode一下?

@ljyljy0211
Copy link
Contributor

jwt_secret先base64_encode一下就ok了

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