Hakkā 多
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?
I guess so
14 replies
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?
Else on server components you can use directly the normal
await auth()
by making your component async14 replies
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?
Yes on client component only by using the hook
14 replies
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?
You can use the context to use the hook and get to client component but you need to define the Provider in the layout :3
14 replies