convex auth + tanstack start
Hello guys im playing with convex and tanstack start, want to implement authentication, this is example page this is how i get current user getCurrentUser is straight from docs: My problem is that inside loader the user is null, so inside component i can see small delay then data is available. this is my router setup:
6 Replies
Is it possible to get current user id on the server side right now?
Convex Auth is in beta, this is early days — but this is coming! I'm digging into this this week.
No worries I realize it takes time especially with stuff like tanstack start which is alpha, just keep good work and take your time guys!
Hi Tom! Found this thread after having the exact same issue. Completely understand everything is new here, but is it possible to get the user in a beforeLoad or loader yet?
It's going to be another week, last month ended up being mostly other topics, and then when I got back to this I made https://convex-tanstack-start.vercel.app/ — and currently I'm debugging a FOUC issue https://github.com/TanStack/router/issues/2700 I found while creating that.
No worries. Thanks! Site looks great, gonna read through it now.