Skip to content

Commit

Permalink
docs(example): remove unstable_ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 authored Mar 31, 2023
1 parent 4dc1d42 commit 3dd47b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/examples/nextjs/pages/server.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unstable_getServerSession } from "next-auth/next"
import { getServerSession } from "next-auth/next"
import { authOptions } from "./api/auth/[...nextauth]"
import Layout from "../components/layout"

Expand Down Expand Up @@ -38,7 +38,7 @@ export default function ServerSidePage() {
export async function getServerSideProps(context: GetServerSidePropsContext) {
return {
props: {
session: await unstable_getServerSession(
session: await getServerSession(
context.req,
context.res,
authOptions
Expand Down

1 comment on commit 3dd47b0

@vercel
Copy link

@vercel vercel bot commented on 3dd47b0 Mar 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.