I am using, @okta/okta-react, and trying to sign somebody out of the react application and Okta.
When I call the signOut() it redirects me to an error page, see below. If I then refresh the page, I get another error saying that the id_token_hint is undefined. Is the value of id_token_hint supposed to be the token?
How do I get around the error and make sure id_token_hint is not null?
Yes, the value for id_token_hint is the raw JWT string ID token. If you are using OWIN directly, I’ve seen something like this happen before, where the id token is not available during logout due to it having expired, so you may need to manually fetch the id_token and make your own request to the /logout endpoint.
Just to close the loop/thread. I got it working and this is what my logout function looks like now. The issues seemed to be that the oktaAuth.isAuthenticated was remaining true until I called closeSession()