mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Account deletion
This commit is contained in:
+5
-1
@@ -4,11 +4,15 @@ import NextAuth from "next-auth";
|
||||
import { clientPromise } from "@/server/mongodb";
|
||||
import Email from "@/utils/nodemailerProvider";
|
||||
|
||||
export const adapter = MongoDBAdapter(clientPromise, {
|
||||
databaseName: "userData",
|
||||
});
|
||||
|
||||
export const {
|
||||
handlers: { GET, POST },
|
||||
auth,
|
||||
} = NextAuth({
|
||||
adapter: MongoDBAdapter(clientPromise, { databaseName: "userData" }),
|
||||
adapter,
|
||||
|
||||
providers: [
|
||||
Email({
|
||||
|
||||
Reference in New Issue
Block a user