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

无效的token jwt格式错误 #187

Open
qwl12708 opened this issue Mar 1, 2022 · 2 comments
Open

无效的token jwt格式错误 #187

qwl12708 opened this issue Mar 1, 2022 · 2 comments

Comments

@qwl12708
Copy link

qwl12708 commented Mar 1, 2022

启动服务,注册、登录后得到token

此时,请求category接口,返回信息无效的token

image

经调试,发现 jwt格式错误

image

查询npm无果

image

继续查询,尝试不用basicAuth检验,直接验证token,成功返回200

image

求助大佬!这个问题产生的原因?如何合理解决?十分感谢!!

@lfb
Copy link
Owner

lfb commented Mar 5, 2022

启动服务,注册、登录后得到token

此时,请求category接口,返回信息无效的token

image

经调试,发现 jwt格式错误

image

查询npm无果

image

继续查询,尝试不用basicAuth检验,直接验证token,成功返回200

image

求助大佬!这个问题产生的原因?如何合理解决?十分感谢!!

image

你好,具体操作看图示

@lfb
Copy link
Owner

lfb commented Mar 5, 2022

image

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