diff --git a/src/auth.ts b/src/auth.ts index 52a5bb1..ac4684b 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,5 +1,8 @@ -import NextAuth from "next-auth" - -export const { handlers, signIn, signOut, auth } = NextAuth({ +import NextAuth from "next-auth"; +import { prisma } from "@/lib/prisma"; +import { PrismaAdapter } from "@auth/prisma-adapter"; + +export const { handlers, auth, signIn, signOut } = NextAuth({ + adapter: PrismaAdapter(prisma), providers: [], });