Previously we had our application running using okta-react 1.4.0 without issue. We recently needed to use the
useOktaAuth() hook to in order to access the authService so that we could issue a logout.
However this seemed to be completely broken and would give us an error of
useOktaAuth is not a function.
After a lot of googling and research we discovered this was a common issue and the fix was to upgrade to the latest okta-react version. Upgrading seemed to solve that problem however now the rest of our okta code seems to be broken. After reading documentation after documentation I don’t see where we are going wrong, the only thing that has changed from 1.4.0 to 3.0.1 is the use of
ImplicitCallback being changed to
Basically we are getting an AuthApi error on the callback with a status code of 401 telling us our credentials are incorrect. However, the credentials match exactly what is in our Okta Application as seen in our screenshots. Any ideas of what I am doing wrong? I’m at a complete loss. If I revert back to 1.4.0 everything works fine.