React-Okta AuthSdkError: Unable to parse a token from the url

I’m using OpenId Connect to integrate okta with React. I’m able to log in to the application but after logging in i’m getting this message “AuthSdkError: Unable to parse a token from the url”. And I’m unable to see the loaded component but after refreshing the page this message disappears and I’m able to see the content.

I’m not sure why this is happening. I’m new to okta and react so any help is appreciated.


1 Like

Hello,
I am not sure how you are trying to setup this up.
If you have not already done so I suggest looking at the Okta React samples.
There is a self hosted sample (no redirect), and Okta hosted sample (redirect)

These should give you a guideline of how to work with the SDK.

I’m having the same problem. It would be helpful if the error message indicated which url variable it failed to parse.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.