Next-auth and standalone trpc
My team is using nextjs with a standalone trpc server and I'm trying to set up Next-Auth. When I try to run
getServerSession
on the request in order to add it to my trpc context I'm just receiving null, and I also have a type error coming up:
Is it even possible to run next-auth in the standalone server or do I need at least express to parse the request properly?
I tried parsing out the cookie and then passing a restructured request into the getServerSession function, but that didn't work.0 Replies