Question about the use of useSession() callback
Why do all of the examples do the const {data:sessionData} for the callback when you can just write ?
3 Replies
cause then you'll have to do sessionData.data.user.firstName
destructuring it is cleaner
Gotcha, thank you for explaining 🙂
separate question, I've never been able to get any of the actual details out of my user objects for some reason, it only ever has the email and ID.
what do I have to do for it to work properly and give me all the information I've set in the prisma schema/ database?
thanks