<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
0D51Y00005tHxjASASOkta Classic EngineSingle Sign-OnAnswered2024-04-15T10:23:49.000Z2019-01-16T20:30:18.000Z2019-01-17T19:42:03.000Z

mntj7 (mntj7) asked a question.

Question about implementing the "Complete OpenID Connect Token Example", but with access token AND ID token

I am trying to implement the "Complete OpenID Connect Token Example" on this page: https://developer.okta.com/code/javascript/okta_auth_sdk, but I would like to have the tokenManager grab and deal with both the id_token and the access token ("token"). From what I gather, I should be able to specify both in the "responseType" options provided to to "getWithRedirect", but when I change `responseType: 'id_token'` to `responseType: 'token id_token'` or `responseType: ['token', 'id_token']`, it does not work.

 

For reference, the API seems to have changed since this post, but I'd like to do something like this: https://scotch.io/tutorials/add-authentication-to-any-web-page-in-10-minutes


  • Hi Nate,

     

    authClient.tokenManager.add('idToken', idToken); should add the token to the manager. Can you please create a ticket including a screenshot of the error? to create a ticket, please email developers@okta.com

     

    Thank you,

     

    Florin.

    Expand Post
This question is closed.
Loading
Question about implementing the "Complete OpenID Connect Token Example", but with access token AND ID token