AxaFrance / oidc-client

Light, Secure, Pure Javascript OIDC (Open ID Connect) Client. We provide also a REACT wrapper (compatible NextJS, etc.).
MIT License
597 stars 160 forks source link

react-oidc-context and silent renew with refreshToken causes "page reset" #540

Closed robinsmedberg closed 4 years ago

robinsmedberg commented 4 years ago

Issue and Steps to Reproduce

When using a refreshToken and automatic silent renew the child tree below AuthenticationContext.provider is reset.

When using a refreshToken the oidc-client will not use an IFrame. And my guess is core/src/routes/OidcRoutes uses the silentCallbackPath and the child tree is lost.

Versions

"@axa-fr/react-oidc-context": "3.1.6" "oidc-client": "1.10.1"

Expected

Real silent renew not affecting the child tree below the AuthenticationContext.provider

Actual

Page is reloaded

Ansalibrahim commented 3 years ago

@robinsmedberg Did the issue resolved for you? I think I have the same problem. Can you share anything that could solve the issue?

engru commented 3 years ago

we have the same problem, but i solved by using automaticSilentRenew = true