From 0bcc5c2e0d2c120304acef44d3295cb6ebaa6956 Mon Sep 17 00:00:00 2001 From: wooo Date: Thu, 18 Jun 2026 12:42:47 +0800 Subject: [PATCH] fix: align nextauth adapter type --- platform/web/lib/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',