Skip to content

Instantly share code, notes, and snippets.

@balazsorban44
Last active November 7, 2022 20:55
Show Gist options
  • Save balazsorban44/c8bf5394a1e05958dbc3d071c5672b72 to your computer and use it in GitHub Desktop.
Save balazsorban44/c8bf5394a1e05958dbc3d071c5672b72 to your computer and use it in GitHub Desktop.
// app/page.jsx
import { unstable_getServerSession } from "next-auth/next"
export default async function Page() {
const session = await unstable_getServerSession()
return <pre>{JSON.stringify(session, null, 2)}</pre>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment