miikee
miikee
TTCTheo's Typesafe Cult
Created by miikee on 6/4/2024 in #questions
If you are using NextAuth, how are you accessing Auth data in Client Components?
For those using the create-t3-app, let's say we add a collapsible sidebar and in that sidebar we have navigation links, but also at the bottom we would like to include the logged in user information (Name and Email). How do you achieve this?: 1. Passing a server component through children into a client component? 2. Using session provider to pass session info as a prop? Is one of these methods more secure? I'm getting hung up on the best way to go.
14 replies