-
Notifications
You must be signed in to change notification settings - Fork 149
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
No documentation how to refresh access token when not using service worker #1263
Comments
Hi @Mikilll94 , |
@guillaume-chervet About this overriden fetch -> do i have to use it for all requests when not using service worker? I have noticed that service worker adds Authorization header for all requests. How can i have the same behavior without using service worker? Also from what i saw in the docs this overriden fetch is a hook. How can i use it outside react components? Thanks again :) Have a nice day 😄 |
Hi @Mikilll94 , the given fetch is not mandatory. You can use it outside of react application by importing @axa-fr/oidc-client used under the hood by the react library. |
@guillaume-chervet |
Hi @Mikilll94, Check the below one, I think it helps you.
use the above |
How do we go about for Axios setup when we don't use the Fetch hook? |
Hi @abhilashlr7 , You can be able tobuse the method explained here #1347 |
Issue and Steps to Reproduce
It's not clear how to refresh access token when not using service worker. It's not documented anywhere.
When using service worker it's simple because refreshing the token is done automatically in the background.
Versions
7.3.15
Screenshots
Expected
There should be some documentation how to use refresh token to prolong the user session.
Actual
No documentation how to use refresh tokens.
Additional Details
The text was updated successfully, but these errors were encountered: