DrippyDogD
tRPC3y ago
DrippyDog

Having Issue With Context in App Directory Next.js

I am having an issue with creatin the trpc context with both the session and prisma. I am trying to use the next 13 app directory and know it has been changed due to how the new api folder works. Using a publicProceedure works properly, but that protectedProcedure says unauthorized.

I am using nextauth too
Screenshot_2023-08-28_at_12.00.20_AM.png
Screenshot_2023-08-28_at_12.00.45_AM.png
Was this page helpful?