Everywhere ctx.session.user in a router is used I get this error
all these three things and probably more return that same error:
4 Replies
Can you share your trpc file (where the context gets defined and also the “server” api file
this was a next-auth issue.
@Jeremy were you able to resolve it? What is the fix. Just upgraded to nextjs15 and I am getting this now
So first of all update your next auth to the latest version
If that doesnt do the job then somewhere in server.ts modify the create context like so: