diff --git a/platform/web/lib/auth.ts b/platform/web/lib/auth.ts index 6a393ba..73311ab 100644 --- a/platform/web/lib/auth.ts +++ b/platform/web/lib/auth.ts @@ -1,5 +1,5 @@ import NextAuth, { type DefaultSession } from 'next-auth'; -import type { Adapter } from '@auth/core/adapters'; +import type { Adapter } from 'next-auth/adapters'; import Credentials from 'next-auth/providers/credentials'; import { PrismaAdapter } from '@auth/prisma-adapter'; import { prisma } from './db'; @@ -19,7 +19,7 @@ declare module 'next-auth' { } export const { handlers, auth, signIn, signOut } = NextAuth({ - adapter: PrismaAdapter(prisma) as Adapter, + adapter: PrismaAdapter(prisma) as unknown as Adapter, providers: [ Credentials({ name: 'Email',