Fix all NextAuth v4 imports across codebase

This commit is contained in:
2025-12-02 14:03:13 +00:00
parent 2f7bc4fe8e
commit d7297248c1
11 changed files with 48 additions and 39 deletions

View File

@@ -1,7 +1,8 @@
import { notFound } from 'next/navigation'
import { getItem } from '@/lib/actions'
import { canEditList } from '@/lib/permissions'
import { auth } from '@/auth'
import { getServerSession } from 'next-auth'
import { authOptions } from '@/pages/api/auth/[...nextauth]'
import ItemForm from '@/components/ItemForm'
import Link from 'next/link'
import { ArrowLeft } from 'lucide-react'
@@ -16,7 +17,7 @@ interface PageProps {
}
export default async function EditItemPage({ params }: PageProps) {
const session = await auth()
const session = await getServerSession(authOptions)
if (!session?.user?.id) {
notFound()
}