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

How to use RequestConfig based on @umijs/max to make the front end insensitive to refresh tokens #324

Open
kokman opened this issue Apr 11, 2023 · 1 comment

Comments

@kokman
Copy link

kokman commented Apr 11, 2023

Here's how I think about it: After a user's login, they have got two tokens (access and refresh) from the server. Before sending a request, if the access token is found to have expired, it waits to obtain a new access token from the server before continuing the current request.

May I ask who can provide reference code? Thanks!

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
@kokman and others