Merge pull request #692 from phillibl/main

Update [...nextauth].ts to allow existing SSO user sign
This commit is contained in:
Daniel 2024-08-15 13:45:07 -04:00 committed by GitHub
commit 3bf6dcad2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1186,7 +1186,7 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
providerAccountId: account?.providerAccountId, providerAccountId: account?.providerAccountId,
}, },
}); });
if (existingUser && newSsoUsersDisabled) { if (!existingUser && newSsoUsersDisabled) {
return false; return false;
} }
} }