TanStackT
TanStack2w ago
7 replies
slow-yellow

How to do cookie base authentication with tanstack start?

So I have setup separate client and server. tanstack start with nestjs. I want to get user session to the nestjs using cookie. but the cookie does not set automatically because i fetch at beforeLoad block. If I manually set the cookie, I got error "trying to set cookie manually" on client.

Is what I'm doing is on the right direction? If so, what should I do in here? thank you
Was this page helpful?