fix: align nextauth adapter type
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user