♻️ Upgrade to next-auth v5 (#1558)

This commit is contained in:
Luke Vella 2025-02-12 12:51:04 +07:00 committed by GitHub
parent 17d386d905
commit 4b26dc50b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 765 additions and 628 deletions

View file

@ -1,9 +1,9 @@
import { prisma } from "@rallly/database";
import { getServerSession } from "@/auth";
import { auth } from "@/next-auth";
export async function getGuestPolls() {
const session = await getServerSession();
const session = await auth();
const user = session?.user;
const guestId = !user?.email ? user?.id : null;