We seem to be having an issue with the Okta sign-in widget where it seems to only work 50% of the time. Literally I sign up for an account, no token retrieval and sent back to the signin-page (account created however). Then I sign up for yet another account, token retrieval and sent to our site like expected. The accounts are correctly created everytime, but the token retrieval and subsequent redirect do not.
Here are our okta packages:
“@okta/okta-auth-js”: “7.0.0”,
“@okta/okta-react”: “6.7.0”,
“@okta/okta-signin-widget”: “6.8.1”,
We are using the security and logincallback components to handle routes. This one has been a real headscratcher and curious if anyone has any insights/suggestions? Note: when I say 50% it seems to work then fail the next time and vice versa.
Same browser each time(Chrome). Testing it by registering a new account via the form on our live site. Clearing cache/cookies does not seem to affect the behavior.
Ok, so that’s eliminates the possibility of it being related to a session or cookie issue. If you open the browser dev tools → Network → check the Preserve Log option, then compare the network traffic for a successful vs failed attempt do you see anything that’s missing?
Yeah, specifically it seems that successful “register” and “authn” calls are made, but for whatever reason the “token” call is only made 50% of the time.