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

FEATURE: 刷新token调用时机 #4435

Open
3 tasks done
kernelmix opened this issue Sep 19, 2024 · 1 comment
Open
3 tasks done

FEATURE: 刷新token调用时机 #4435

kernelmix opened this issue Sep 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kernelmix
Copy link

Version

Vben Admin V5

Description

刷新token能否在接口调用之前留个拓展点

Proposed Solution

一般登录接口返回双token+过期时间,在接口调用之前先判断token是否快过期,快过期的时候先刷新token,等刷新完再继续调用接口,而不是等接口调用返回401之后再刷新,接口返回401执行刷新token也可以保留做兜底

Alternatives Considered

No response

Additional Context

No response

Validations

  • Read the docs
  • Ensure the code is up to date. (Some issues have been fixed in the latest version)
  • I have searched the existing issues and checked that my issue does not duplicate any existing issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@kernelmix @vince292007 and others