mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
♻️ Upgrade to next-auth v5 (#1558)
This commit is contained in:
parent
17d386d905
commit
4b26dc50b3
53 changed files with 765 additions and 628 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue