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过期时间是多少,请求jwt登陆频率有没有限制 #141

Closed
songlf1002 opened this issue Jan 4, 2023 · 4 comments

Comments

@songlf1002
Copy link

image

@songlf1002 songlf1002 changed the title 用户登录 jwt过期时间是多少 用户登录 jwt过期时间是多少,请求jwt登陆频率有没有限制 Jan 4, 2023
@lloydzhou
Copy link
Contributor

jwt应该是会自己包含过期时间之类的信息。

src/db/token_manager.h文件有定义过期时间

#define TOKEN_REFRESH_TIME 3600
#define TOKEN_EXPIRE_TIME 3600 * 24

刚刚看了看python client的代码,应该是没有刷新token的逻辑,估计得自己做,或者自己提pr加上对应的逻辑吧

@KingSkyLi
Copy link

在3.3.3版本会优化JWT相关逻辑,同时也会有相关的过期时间和刷新token的接口。

@qishipengqsp
Copy link
Collaborator

JWT逻辑已优化,可以再看一下。

@qishipengqsp
Copy link
Collaborator

The issue is closed due to inactivity. Please feel free to create a new one if you have more questions. And please star this repo if you find it useful! Thanks!
此issue由于长期不活跃被关闭。如有任何问题,可另开 issue 并提供更多信息。如果这个项目帮助到你,可以在仓库右上角 star 一下,感谢你的支持!

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

4 participants