The npm install command failed in my project. Analyze the following er
This commit is contained in:
@@ -3,16 +3,11 @@ import type { NextAuthConfig } from 'next-auth';
|
||||
import Credentials from 'next-auth/providers/credentials';
|
||||
import { z } from 'zod';
|
||||
import db from '@/lib/db';
|
||||
import { BetterSqlite3Adapter } from "@auth/core/adapters/better-sqlite3"
|
||||
|
||||
export const authConfig = {
|
||||
pages: {
|
||||
signIn: '/login',
|
||||
},
|
||||
adapter: BetterSqlite3Adapter(db),
|
||||
session: {
|
||||
strategy: 'database',
|
||||
},
|
||||
providers: [
|
||||
Credentials({
|
||||
async authorize(credentials) {
|
||||
|
||||
Reference in New Issue
Block a user