authenticated routes approach
Hello guys, this is the auth routes example in the docs. The other image is my auth setup. Do you have any other preference/example to have a look at? I'm not sure how to handle dozens of dozens of routes and I dont know if adding _auth. prefix to each route would be the best approach ? Maybe yes? Any suggestions?


1 Reply
absent-sapphire•12mo ago
Create an
_auth.tsx
do the validation there and create an _auth
folder and all your authenticated routes should be under the _auth
folder with tha you don't need to prefix every route with _auth