Skip to content

Commit ecde35e

Browse files
authored
docs: Fix hydration error for SSR example (#6202)
1 parent 5a51330 commit ecde35e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/docs/guides/03-basics/securing-pages-and-api-routes.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ import { useSession } from "next-auth/react"
6767
export default function Page() {
6868
const { data: session } = useSession()
6969

70-
if (typeof window === "undefined") return null
71-
7270
if (session) {
7371
return (
7472
<>

0 commit comments

Comments
 (0)