mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
fix: Too many prisma client created
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user