<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007XrtKzCAJOkta Classic EngineAuthenticationAnswered2023-12-20T20:33:32.000Z2022-03-30T15:37:51.000Z2022-09-19T19:56:32.000Z

AlyssaR.88389 (Customer) asked a question.

How to close Okta session completely using next-auth signOut

I'm setting up Okta authentication using signIn('okta') from the next-auth package that they recommend alongside Next.js. When we signOut(), the browser session is set to null, but if we redirect to the Okta-hosted sign in page, the session appears to still exist. Any suggestions on how to clear the session and log out of Okta completely? AND/OR where can we pull the Okta session cookie from to call DELETE on /api/v1/sessions/${session_cookie}, as the cookie is set to HTTP only so packages like js-cookie don't find it.


This question is closed.
Loading
How to close Okta session completely using next-auth signOut