Move to next-auth

This commit is contained in:
Jared Palmer 2023-05-22 10:16:09 -04:00
parent 3b8bb9dea4
commit a46b2ac3c6
10 changed files with 107 additions and 20 deletions

View file

@ -2,7 +2,7 @@ import { NextChatLogo } from "@/components/ui/nextchat-logo";
import { Login } from "@/components/ui/login";
import { UserMenu } from "@/components/ui/user-menu";
import { prisma } from "@/lib/prisma";
import { type Session } from "@/lib/session/types";
import { type Session } from "@auth/nextjs/types";
import { cn } from "@/lib/utils";
import { Plus } from "lucide-react";
import Link from "next/link";
@ -70,7 +70,8 @@ async function SidebarList({ session }: { session?: Session }) {
updatedAt: "desc",
},
}),
[session?.user.id || ""],
// @ts-ignore
[session?.user?.id || ""],
{
revalidate: 3600,
}