I'm reading through the next-auth documentation, and I'm confused by the syntax for the useSession hook. Here's how it's used in the documentation
const { data: session, status } = useSession()
However, I don't understand why we're assigning session to data. Wouldn't we achieve the same result if we just did this:
const { data, status } = useSession()
I'm sure I'm missing something here, but I'm not sure what it is. Any help would be appreciated.
Thanks!