What's the difference between useSession and getSession in next-auth? Both seems to be returning session object.
useSession ReactJS hook that works only on client, that returns states which helps you to update UI and it's made on top of getSession
getSession async function that read current cookies and returns session, works both on Client and Server
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With