<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
0D50Z00008OKxwjSADOkta Classic EngineSingle Sign-OnAnswered2018-10-12T18:11:19.000Z2018-09-25T15:10:48.000Z2018-10-12T18:11:19.000Z

JohnH.72971 (Customer) asked a question.

Okta Auth JS SDK - SessionToken verses Okta Session Cookie

I'm trying to use the Okta Auth JS SDK, if an Okta Session is already established in a browser using the oktaAuth.getWithoutPrompt() and if you call the AuthN endpoint to get a sessionToken. If you set the sessionToken in the oktaAuth.getWithoutPrompt() but since the browser has the Okta session cookie stored, if both values are passed which one trumps the other?

When I try to implement this scenario, on the second application calls getWithoutPromt I get an Auth Error about the user not being authorized even though it does. I'm wondering if the second call is not looking at the sessionToken I'm passing in and looking at the session cookie in the header.


This question is closed.
Loading
Okta Auth JS SDK - SessionToken verses Okta Session Cookie