Remove vercel auth

This commit is contained in:
Jared Palmer 2023-05-22 10:32:06 -04:00
parent 9323d90a36
commit 1af7fb3dfc
11 changed files with 2 additions and 320 deletions

View file

@ -1,11 +1,11 @@
"use server";
import { auth } from "@/auth";
import { prisma } from "@/lib/prisma";
import { getServerSession } from "@/lib/session/get-server-session";
import { revalidatePath } from "next/cache";
export async function removeChat({ id, path }: { id: string; path: string }) {
const session = await getServerSession();
const session = await auth();
const userId = session?.user?.email;
if (!userId || !id) {