Hosenur
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
@shmookoff
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
Here is the code for server/api/trpc.ts
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
@shmookoff I am using pages router , and facing the same issue, httpBatchLink is also set, I get the error :
tRPC failed on auth.register:
cookies was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context
26 replies