React SPA – Unable to properly logout
I have a react application where I have integrated OIDC connect through react-oidc-context referring to installation instructions with some additions.
I can Sign the user in the application. Doing so redirects me to the OIDC Sign-In screen, I fill in credentials, and then I am redirected back to my React SPA and my access token is available. All good so far.
However, clicking Sign Out I am redirected to OP /logout. If I then navigate back in the browser I again get logged in without asking for credentials but if I refresh the screen then I get logged out.