mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +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) {
|
export default async function auth(req: NextApiRequest, res: NextApiResponse) {
|
||||||
return await NextAuth(req, res, {
|
return await NextAuth(req, res, {
|
||||||
|
secret: process.env.NEXTAUTH_SECRET,
|
||||||
adapter: MongoDBAdapter({ db: (await connect()).connection.db }),
|
adapter: MongoDBAdapter({ db: (await connect()).connection.db }),
|
||||||
providers: [
|
providers: [
|
||||||
EmailProvider({
|
EmailProvider({
|
||||||
|
|||||||
Reference in New Issue
Block a user