pequenas correções + doc update
This commit is contained in:
@@ -3,13 +3,12 @@ import Credentials from 'next-auth/providers/credentials';
|
||||
import { prisma } from '@repo/db';
|
||||
import { authenticateCredential } from '@repo/api';
|
||||
import type { SessionUser } from '@repo/api';
|
||||
import { env } from '../env';
|
||||
import { authConfig } from './auth.config';
|
||||
|
||||
const AUTH_SECRET = process.env['AUTH_SECRET'];
|
||||
|
||||
export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
...authConfig,
|
||||
secret: AUTH_SECRET,
|
||||
secret: env.AUTH_SECRET,
|
||||
providers: [
|
||||
Credentials({
|
||||
name: 'Email + password',
|
||||
|
||||
Reference in New Issue
Block a user