I’m using React, React Okta, and Okta Sign-in Widget. A user can successfully login and logout using the login and logout buttons.
However, the user is not being logged out after the access token has expired. I’m using Okta’s
<SecureRoute> component, where I believe this should happen automatically. Am I missing a step?
In our Okta admin settings, the token is configured to expire after five minutes and refresh for five minutes.
After a long period of time, it then throws this error into the browser’s console.
error.errorCode: login_required, error.description: The client specified not to prompt, but the user is not logged in.. However, it does not redirect the user to log in again.
To reiterate, here’s my end goal: if a user is inactive after a period of time, the application should not load and redirect to the login page.
Many thanks for your help.