Account deletion

This commit is contained in:
Timothy Armes
2024-04-12 16:23:44 +02:00
parent cfbba733c2
commit 45ea8960e0
10 changed files with 198 additions and 42 deletions
+5 -1
View File
@@ -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({