Question re. next auth best practices in TRPc

I noticed that when a new app is scaffolded with the ct3a cli (app router with nextauth, prisma) the root layout is not wrapped in the nextauth session provider. Is there a reason for this? Is this no longer best practice?
1 Reply
Connor B
Connor BOP12mo ago
Also, I have a Navbar which, when authenticated has the users avatar, if not authenticated has a sign in button. The Nav bar is placed just above the children in the root layout. Is there anyway to do a single call to getServerAuthSession and share it between the Navbar defined in the root layout and other server components in other pages?
Want results from more Discord servers?
Add your server