T
TanStack5mo ago
graceful-blue

Index and auth index routes

Is there a way to have an unauthenticated route / where there is a button to login and once the user is logged in we are still on the / route but it actually loads the /_auth route?
1 Reply
broad-brown
broad-brown5mo ago
Is not possible to have an pathless path index You could return the user in the context or loader and use the presence of user to conditionally render login for or page content in the index page

Did you find this page helpful?