React TypeScript -> Auth Failing After Page Navigation

Update to this issue:

I’ve created another, brand new TypeScript React app to test this out.

Findings:

  • unauthorized user gets redirected to the Login component, after login
    • After login, they are redirected to the home page
  • Any route change after that forces the user back to the Login component for just a moment as isAuthenticated is evaluated again.
  • They are then redirected to their requested route without needing to login again.

What in the world am I blowing up here?

1 Like