-
Notifications
You must be signed in to change notification settings - Fork 150
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
Silent renew of tokens do not work #1368
Comments
hi @nandeeshwar-p , thank you for your issue. DO you have a sample of your configuration? To refresh token, you should avec scope : access_offline or use silent signin. |
hi @nandeeshwar-p you manage to make it works? |
@guillaume-chervet thanks for the response... How do we use silent signin, could you please share the example link or a code snippet.... |
Hi @nandeeshwar-p , did you tried the demo? It contains many example. Which framework are you using? |
Code snippet related to my implementation |
I am using latest version of the package @axa-fr/react-oidc.
My requirement is to refresh access and I'd tokens, before the session expires if the user is actively using the application.
So, as pert of oidc configuration I have added refresh_time_before_tokens_expiration_in_second:300,
and token_automatic_renew_mode:TokenAutomaticRenewMode.AutomaticBeforeTokensExpiration, even then the token renew doesn't happen silently, instead after session expiry, "Session lost" component is rendered.
I tried with service worker and without service worker, either way it didn't help.
Could you please let me know how to renew tokens(with/out sevice worker) without disturbing user activity
The text was updated successfully, but these errors were encountered: