diff --git a/docs/pages/getting-started/session-management/get-session.mdx b/docs/pages/getting-started/session-management/get-session.mdx index 392b08235a..85909f365f 100644 --- a/docs/pages/getting-started/session-management/get-session.mdx +++ b/docs/pages/getting-started/session-management/get-session.mdx @@ -14,7 +14,7 @@ import { auth } from "../auth" export default async function UserAvatar() { const session = await auth() - if (!session.user) return null + if (!session?.user) return null return (