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!
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?
Hi @mraible, no there’s nothing in the console at all. As a test I console.logged out the authState in Home.jsx. When I visit http://localhost:3000 I am getting 2 console logs from Home.jsx which display as: