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

login接口的token没返回过期时间 #185

Closed
welylongguikeji opened this issue Jun 21, 2020 · 1 comment
Closed

login接口的token没返回过期时间 #185

welylongguikeji opened this issue Jun 21, 2020 · 1 comment

Comments

@welylongguikeji
Copy link
Contributor

现在arkid在返回token的时候,没有携带token的有效期,感觉用http直接请求login接口,会导致在之后的鉴权活动要反复请求arkid来验证token是否有效,这个效率是不是不行?是不是应该在返回token的时候附带上有效期,在第三方应用自己的API就可以用这个有效期去验证token是否有效就好了?

@Oo-RR-oO
Copy link
Contributor

如果有必要的话,理论上是没有任何问题的。
更简便的,省略验证token,如果响应码为401,重新登录即可。

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