Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: added callout re getServerSession nextjs.md (#8964)
added callout re getServerSession nextjs.md Added an admonition/callout that specifies there is a contrast between the returning object using useSession (client components) and getServerSession (server components). Where the former appears to always return a session object, the latter only returns an object where there a authenticated cookies present, otherwise it returns null. I was expecting getServerSession to behave exactly like useSession, but this appears not to be the case and I would have appreciated if this was highlighted somewhere. Co-authored-by: Nico Domino <[email protected]>
- Loading branch information
c8edf2d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-auth-docs – ./docs
next-auth-docs-authjs.vercel.app
next-auth.js.org
next-auth-docs-dun.vercel.app
next-auth-docs-git-v4-authjs.vercel.app
www.next-auth.js.org
v4.authjs.dev