-
Notifications
You must be signed in to change notification settings - Fork 73
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
Authentication is not working after upgrading to react 18 #1272
Comments
@VijayaSaiRam - can confirm that this library works okay with react 18. See: Your issue may be elsewhere, but it's hard to tell from the snippet you provided. Can you provide a minimal reproducible example? |
Is this "spinner" from Keycloak, or from your React app? If it's from your React app, what is the code that toggles this spinner? |
Hi, I stumbled upon the same issue but with oidc-client-ts. I moved the Provider above the StrictMode and now it works. Funny thing is, this only happened with Firefox for me. Chrome works fine without doing the workaround. |
Hi @Skezzowski - the sample repo uses react 18.x in strict mode and works fine. Are you able to reproduce your issue there? |
I have upgraded to React 18. after that when I load the page, it is not coming out of the loading spinner, authentication is not working.
const root = createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<AuthProvider {...oidcConfig} >
</React.StrictMode>
);
If I comment <React.StrictMode> then it is working
could you please help me on this
Thankyou.
Regards,
Vijaya
The text was updated successfully, but these errors were encountered: