ignacio
TTCTheo's Typesafe Cult
•Created by ignacio on 8/3/2023 in #questions
T3 - app dir - tRPC + Prisma + Custom auth
Hello!
Is there an alternative to using the createAction function for mutations and deletions on the client? I'm implementing it in a new app directory, and while fetching data is smooth, creating or editing data is challenging. I can't get the req in
createInnerTRPCContext
, so I can't access the cookie to verify authentication. Can I use createTRPCContext
instead of createInnerTRPCContext
for actions?
3 replies