#Authenticated Routes

3 messages · Page 1 of 1 (latest)

waxen wagon
#

Hi everyone,
I'm new to Tanstack Router and I'm encountering some difficulties.

How can I centralize this type of validation across multiple routes? For instance, in the provided example where I have 'profile' routes, I also want to apply the same validation to 'registrations' routes to check if the user is logged in.

random kettle
#

You can create a pathless layout route that wraps all of your authenticated routes and just enforces the auth check

waxen wagon