-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Is there a way to use axios interceptors to force a token refresh using this library? #1356
Comments
Hi @StijnKlarenbeek if so, I may have a solution that worked for me. |
@milly-code It'd be great if you could share your idea. I assume force refresh is done by simulating a re-sign in step ( react-auth-kit/src/TokenObject.ts Lines 231 to 255 in 7b49e31
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I will create the next plugin by the end of January. OSS's contribution will be appreciated. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Prerequisites:
Please answer the following questions for yourself before asking questions.
Describe the question
I would like to know whether or not it is possible to use axios interceptors to force the update of a refresh token using this library. Currently the auth provider is not sufficient for what's needed as we simply don't know when the last time the is that a user logged in.
License
Apache-2.0 © React Auth Kit
The text was updated successfully, but these errors were encountered: