Hi, I've been working based on the indie stack and while I generally understand how the authentication works in remix, but I'm not 100% on how to go about restricting the whole app to the authenticated users so they would be redirected to the /login page regardless of which path they hit.
root.tsx doesn't work as /login is a child of the root and this causes redirection loop.
Alternative solution I came up with that would probably work is that I would need to create another subfolder in app/routes where I put all the application logic so /login would live outside of that and perhaps add __ to the subfolder so it would become pathless layout route and wouldn't add any extra stuff to the url - am I on the right path with this train of thought or there is another/better approach for this?