feat: removing registration restrictions

Anyone can now register
This commit is contained in:
Sonny
2023-11-16 18:58:04 +01:00
committed by Sonny
parent 11ac5f4b05
commit 5bdd42afdb
5 changed files with 77 additions and 96 deletions

View File

@@ -0,0 +1,15 @@
import prisma from "../../utils/prisma";
import { Profile } from "next-auth";
export default async function updateUser(profile: Profile) {
return await prisma.user.update({
where: {
email: profile.email,
google_id: profile.sub
},
data: {
email: profile.email,
google_id: profile.sub
}
});
}