I’ve setup (React) auth0 apps twice and i’m experiencing the same issue on both.
I login, it authenticates, i refresh the page and it errors with “login_required”, window alert (“could not get a new token”).
The logs say this is a Failed Silent Auth, though the nearest i can get to any explanation of that is a post about “Allowed Web Origins”; mine is set to exactly “http://localhost:3000”.
I am refreshing the page when on “http://localhost:3000/home”.
I did some logging in the
Auth.js class and accessToken, idToken and expiresAt are all being set correctly. As is localStorage’s
isAuthenticated is called (when it first correctly logs in), expiresAt is given a date.now value correctly. But when i refresh it, this zeros, which flips
isAuthenticated to false, which i guess bounces me out/alerts the logout error above ^
What am i doing wrong here?