tRPCttRPC
Powered by
DrippyDogD
tRPC•3y 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
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Next.js app directory
Tamás SoósTTamás Soós / ❓-help
3y ago
tRPC with with react-query prefetching in Next.js app directory.
RuleRRule / ❓-help
3y ago
Next.js App router
BrianBBrian / ❓-help
8mo ago
Integrating hono.js with tRPC in Next.js: Routing and Context Considerations
craftzcodeCcraftzcode / ❓-help
11mo ago