We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vben Admin V5
刷新token能否在接口调用之前留个拓展点
一般登录接口返回双token+过期时间,在接口调用之前先判断token是否快过期,快过期的时候先刷新token,等刷新完再继续调用接口,而不是等接口调用返回401之后再刷新,接口返回401执行刷新token也可以保留做兜底
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
Vben Admin V5
Description
刷新token能否在接口调用之前留个拓展点
Proposed Solution
一般登录接口返回双token+过期时间,在接口调用之前先判断token是否快过期,快过期的时候先刷新token,等刷新完再继续调用接口,而不是等接口调用返回401之后再刷新,接口返回401执行刷新token也可以保留做兜底
Alternatives Considered
No response
Additional Context
No response
Validations
The text was updated successfully, but these errors were encountered: