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

你好 想问下 请求前怎么检验token的有效期 #12

Open
wfs498121294 opened this issue Dec 11, 2021 · 1 comment
Open

你好 想问下 请求前怎么检验token的有效期 #12

wfs498121294 opened this issue Dec 11, 2021 · 1 comment

Comments

@wfs498121294
Copy link

请求前怎么检验token的有效期 如果失效 获取token 再重新发出请求

@Liaoworking
Copy link
Owner

这个应该是一个业务逻辑 token的有效期检测一般都放在后端去校验的。 你可以在统一调用的request方法里去看后端返回的code是不是token过期的code 是的话就去刷新token,重新发出请求需要对现有封装的网络请求框架改造一下了。

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