From 41a7a90bda21f815dd63708fe35f498afd3949c0 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 28 Jan 2023 23:51:14 -0800 Subject: [PATCH] unstable_getServerSession -> getServerSession --- src/lib/server/session.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/server/session.ts b/src/lib/server/session.ts index a650f025..78572dff 100644 --- a/src/lib/server/session.ts +++ b/src/lib/server/session.ts @@ -1,5 +1,5 @@ import type { GetServerSidePropsContext } from "next" -import { unstable_getServerSession } from "next-auth/next" +import { getServerSession } from "next-auth/next" import { authOptions } from "./auth" type Params = { @@ -8,8 +8,8 @@ type Params = { } export async function getSession(params?: Params) { - if (!params) return await unstable_getServerSession(authOptions) - return await unstable_getServerSession(params.req, params.res, authOptions) + if (!params) return await getServerSession(authOptions) + return await getServerSession(params.req, params.res, authOptions) } export async function getCurrentUser(params?: Params) {