Jack VaneJ
Convex Community14mo ago
5 replies
Jack Vane

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?
Was this page helpful?