oscaramaッO
tRPC4y ago
12 replies
oscaramaッ

cookies, headers and authentication

in express I can do something like
res.cookie("name", "value")
for example.
alternatively I can do
res.set"set-cookie", "name=value")
.

how can I do something one of the two above with trpc?

or is there another, standardized way to do auth?

I'm using trpc v10 and sveltekit
Was this page helpful?