perf: replace getServerSessionForAppDir usages with our original getServerSession function (#18897)

This commit is contained in:
Benny Joo authored and GitHub committed 2025-01-26 21:57:02 +00:00
1 parent 828940b4d6
commit 2b79ef0836
15 files changed
+44 -36

No files matched your search

@@ -1,12 +0,0 @@
import { getServerSession } from "next-auth";
import { cookies } from "next/headers";
import { getOptions } from "./next-auth-options";
export async function getServerSessionForAppDir() {
return await getServerSession(
getOptions({
getDubId: () => cookies().get("dub_id")?.value || cookies().get("dclid")?.value,
})
);
}