You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a runtime error when attempting to log out using react-oidc-context version ^3.2.0 with a React application (^19.0.0) integrated with Keycloak. The error message "TypeError: Cannot read properties of undefined (reading 'profile')" appears just before the redirect action is completed during the logout process.
Set up
Below are the OIDC configuration details provided in my .env file:
Description
I'm encountering a runtime error when attempting to log out using
react-oidc-context
version^3.2.0
with a React application (^19.0.0
) integrated with Keycloak. The error message "TypeError: Cannot read properties of undefined (reading 'profile')" appears just before the redirect action is completed during the logout process.Set up
.env
file:index.js
of my application as follow:App.js
I use it to check if the user is authenticated:I also tried solutions from similar issues like this one:
but it does not work.
The text was updated successfully, but these errors were encountered: