How in the world do I setup Auth0 in a React Remix app?

Hello,

I’ve rinsed and repeated around 3 different Auth0 setups in my React Remix app, first following the official Auth0 guide and the other 2 times via claude.ai, both times it results in a login page that works, but doesnt redirect to the origin url (localhost:5173/dashboard/$DYNAMIC), it only redirects to the index page and I cannot get it to redirect to the origin page. On top of this it doesnt save the isAuthenticated state of the user and constantly asks for logins, so no matter what you do, you can no longer reach the origin url. I’ve completely lost it as I got auth0 to work as intended in my Django app originally (im a python programmer), but I decided to scrap the Django app in favour of React Remix in order to create a better looking dashboard with some more features.

Does anybody have a comprehensive answer as to how to do this while taking into account im a React novice? The Auth0 documentation seems outright wrong or ununderstandable since the achieved outcome isnt equal to the required one.