2024-05-14 12:53:19 +00:00
|
|
|
import { AuthConfig } from '@auth/core';
|
|
|
|
import Nodemailer from '@auth/core/providers/nodemailer';
|
2024-07-28 12:32:41 +00:00
|
|
|
import { env } from '../utils/env.js';
|
2024-05-25 18:35:33 +00:00
|
|
|
import { PrismaAdapter } from '@auth/prisma-adapter';
|
2024-07-28 12:32:41 +00:00
|
|
|
import { prisma } from './_client.js';
|
2024-05-14 12:53:19 +00:00
|
|
|
|
|
|
|
export const authConfig: Omit<AuthConfig, 'raw'> = {
|
2024-05-25 18:35:33 +00:00
|
|
|
providers: [Nodemailer(env.auth.email)],
|
|
|
|
adapter: PrismaAdapter(prisma),
|
2024-05-14 12:53:19 +00:00
|
|
|
secret: env.auth.secret,
|
|
|
|
};
|