I have a simple React SPA which I want to protect and am trying out Okta so this is my first time using it. It’s also pretty much my first react App too so please forgive me if I’m doing something stupid!
I’m following the guide here - https://developer.okta.com/code/react/okta_react/ to get started and all the way through I am using the functional components.
My issue is the that when my App runs, I get redirected to
/login and the page just says ‘Loading…’. I do get a very brief flash of the form elements but almost imediately it changes to ‘Loading…’ with no login form.
This happens if I just go to / or if I try to go to /protected.
I’ve followed the guide twice to the letter and both times I get the same issue. Can anyone advise on what might be going wrong?