cookies not being set in procedure
This is all the code for setting my cookie
I'm using svelte-kit, but this doesn't set the cookie
5 Replies
you probably need to set it on the response object
@alex / KATT yeah, how do I get access to that in the context?
you can pass it in your
createContext
-fn
@alex / KATT I don’t have access to opts, can this be because I’m using trpc/sveltekit?
This is how my createContext looks like
Found this workaround https://github.com/icflorescu/trpc-sveltekit/issues/78#issuecomment-1500908054
GitHub
Unable to delete cookie through client · Issue #78 · icflorescu/trp...
Describe the bug I'm unable to delete a cookie if a procedure is called through the tRPC client (works fine in callers though). To Reproduce // lib/trpc/router.ts import type { RequestEvent } f...