fix: Too many prisma client created

This commit is contained in:
Sonny
2022-05-08 23:34:58 +02:00
parent 42f6f8858e
commit 339b651dfc
14 changed files with 17 additions and 32 deletions

View File

@@ -20,6 +20,7 @@ export default NextAuth({
],
callbacks: {
async signIn({ account: accountParam, profile }) { // TODO: Auth
console.log('Connexion via', accountParam.provider, accountParam.providerAccountId, profile.email, profile.name)
if (accountParam.provider !== 'google') {
return '/signin?error=' + encodeURI('Authentitifcation via Google requise');
}