diff --git a/apps/hub/app/api/auth/[...nextauth]/auth.ts b/apps/hub/app/api/auth/[...nextauth]/auth.ts index adf76e45..8f9cc5b0 100644 --- a/apps/hub/app/api/auth/[...nextauth]/auth.ts +++ b/apps/hub/app/api/auth/[...nextauth]/auth.ts @@ -4,7 +4,7 @@ import { } from 'next-auth'; import { PrismaAdapter } from '@next-auth/prisma-adapter'; import Credentials from 'next-auth/providers/credentials'; -import { PrismaClient } from '@prisma/client'; +import { PrismaClient } from '@repo/db'; import bcrypt from 'bcryptjs'; const prisma = new PrismaClient(); @@ -38,7 +38,7 @@ export const options: AuthOptions = { maxAge: 30 * 24 * 60 * 60, }, - adapter: PrismaAdapter(prisma), + adapter: PrismaAdapter(prisma as any), callbacks: { jwt: async ({ token, user }) => { if (user && 'firstname' in user) {