Merge pull request #1 from phillibl/phillibl-SSO-user-signin

Update [...nextauth].ts to allow existing SSO user sign
This commit is contained in:
phillibl
2024-08-07 05:44:19 -04:00
committed by GitHub
+1 -1
View File
@@ -1186,7 +1186,7 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
providerAccountId: account?.providerAccountId,
},
});
if (existingUser && newSsoUsersDisabled) {
if (!existingUser && newSsoUsersDisabled) {
return false;
}
}