Jack Vane
CCConvex Community
•Created by Jack Vane on 11/25/2024 in #support-community
Convex Auth on the server?
I'm using Convex Auth, Convex Ents, and TanStack Start.
I want to be able to take advantage of the
beforeLoad
method of each route to redirect unauthenticated users as it's wasteful and prone to security leaks if I rely sole on the Authenticated and Unathenticated components as people have been suggesting here.
Now I get that sessions are managed in localstorage, and it's a tall order to validate that on the server (wouldn't be a problem if you used cookies instead), but is there a plan to be able to let us get the auth status of a user on the server? There's already a way to use Convex calls on the server, so surely there's a way to check if a user is authenticated or not?5 replies