More details!
`https://www.loom.com/share/26a9cee60e1a45998acb8de6e64dbf06?sid=04ce0bb4-9db2-4e40-9a10-7c4ab4d94fbb`
the useAuth has some issues. This one might be hard to reproduce on your end, but my browser caches random space pages with tokens somehow. Now when I visit them they go into an infinite reload sequence caused by the try catch error in useAuth.
- If you can make the useAuth error side clear the cookie cacher it might fix it
- Get rid of the window.location.reload as this will cause an infinite loop anytime an error occurs with useAuth
- There is some unfinished example code below that does this, but it needs to be cleaned up. Does not need to push to / but it does need to reset the user variable to get rid of anything that they aren’t allowed to see when logged out