How to get NextAuth session object in a React Client Component?
I'm new to working with Next.js 15 and NextAuth, created with create-t3-app. I'm trying to get the
session object exported by the auth() function, it works fine in Server Components, but when I use the "use client" directive, I can no longer access it. Now this is no surprise, but I was wondering if there was a way to get the session object in a Client Component? Thanks for any answers/insight 🙏2 Replies
useSession hook or pass it into your client component from your server component component
I missed this, that's what I later did! Thank you! 🙌