diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts index d1bb297..0ffb8c5 100644 --- a/pages/api/auth/[...nextauth].ts +++ b/pages/api/auth/[...nextauth].ts @@ -10,6 +10,7 @@ let mongooseConnection: Mongoose; export default async function auth(req: NextApiRequest, res: NextApiResponse) { return await NextAuth(req, res, { + secret: process.env.NEXTAUTH_SECRET, adapter: MongoDBAdapter({ db: (await connect()).connection.db }), providers: [ EmailProvider({