tRPC clerk auth context not working on Server side HTTP requests with NextJS app dir
I have setup tRPC as per the https://github.com/trpc/examples-next-app-dir/ but the server side http request do not have the auth context that I am passing in through clerk's
getAuth()
... I have done a bit of investigating and found the req I am passing to the getAuth does not have cookies in it but when I use client side http req it works as intended. I am wondering if this is intended behaviour or if its me setting things up wrong.
My tRPC Context
My isAuthed tRPC middleware setup
GitHub
GitHub - trpc/examples-next-app-dir
Contribute to trpc/examples-next-app-dir development by creating an account on GitHub.
0 Replies