Next.js app router with tRPC context and NextAuth
Hi. I'm trying to set up Next 13 with tRPC over a WebSocket and NextAuth. I got it mostly working with:
4 Replies
and a provider component
My issue is with the createContext call. The opts type isn't quite right. getSession is giving me:
even though it happens to be working for now. Btw getSession creates infinite reconnects on the ws client with any other inputs and getServerSession does the same except I couldn't find any arguments that work at all.
when using a provider client component, doesn't that make everything from that point on a client component tree, which makes me wonder why even bother switch to the app router if doing that