mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
use nextauth secret from env
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user