fix: align nextauth adapter type
Some checks failed
2026 World Cup Quant Platform - Production Deployment / Code Quality, Security Gate & Testing (push) Successful in 4m47s
2026 World Cup Quant Platform - Production Deployment / Deploy to Production VM via Gitea CD (push) Failing after 6m21s

This commit is contained in:
wooo
2026-06-18 12:42:47 +08:00
parent 61878da91d
commit 0bcc5c2e0d

View File

@@ -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',