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过期、续签的一些问题 #21

Closed
getongoing opened this issue Jun 6, 2024 · 4 comments
Closed

关于JWT过期、续签的一些问题 #21

getongoing opened this issue Jun 6, 2024 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@getongoing
Copy link

1.【疑问】
目前是不支持自动续签吗?
设置access_exp为2小时,无论两小时内我请不请求都会到期过期,不会按照最后一次请求的时间推算最新过期时间,是没有相关的功能还是我没找到呢···

2.【BUG】
插件改动:无
插件配置:默认配置
设置refresh_exp为7天,遇到access_token过期时(确定没有超过refresh_exp设置阈值):
请求刷新token,Authorization格式拼接为:“Bearer ”+refresh_token,直接返回“身份验证令牌无效”。
----已多次尝试登录,待access_token过期后,请求refresh_token均提示这个错误。

谢谢

@getongoing
Copy link
Author

2解决了,1貌似是没得的 需要自己手动触发刷新

@Tinywan
Copy link
Owner

Tinywan commented Jul 30, 2024

为什么要自动续签。你如果有好的意见你可以提交个PR

@Tinywan Tinywan added the help wanted Extra attention is needed label Jul 30, 2024
@getongoing
Copy link
Author

不好意思····
第一次用不是很了解,后面跟代码了解了设计原理
用着非常顺手 谢谢大佬

@Tinywan
Copy link
Owner

Tinywan commented Aug 5, 2024

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants