Im having a problem with my okta-react integration and would appreciate any help. Until a few hours ago this integration had been working fine, but know when I login and my app responds to the callback url i get the following error on the page:
TypeError: Cannot read property ‘idToken’ of undefined
This is the only error I can find and there is nothing else in the browser console. Digging into where this error comes from it seems to be related to the handleAuthentication method in the okta-react/Auth object.
Basically the if ( token.idToken ) line, where token is actually undefined. Adding some debug to the babel built version in dist i can see that the call to
this._oktaAuth.tokenManager.get('accessToken') is resolving to an array where the first entry is undefined and the second seems to contain an actual value with the relevant tokens (authToken in this case).
I have checked my deps via package.json/package-lock.json and can see that okta-react did upgrade to 1.0.3 and react-auth-js to 2.0.0. But downgrading these didnt seem to make a difference.
Im a bit stuck any suggestions would be appreciated.