I am trying to log users out of an SPA and failing miserably. I generate a url to navigate to like this:
and then use window.location.href to navigate to it.
The problem comes on the return from Okta - it comes back with a code / state in its url as if I’d requested the login process. My auth code then automatically signs the user in automatically.
My question is why does it come back trying to re-initiate a login, and not just back to the logout redirect uri?