feat: remove default personal orgs from custom sso (#2741)

This commit is contained in:
David Nguyen
2026-05-05 14:50:07 +10:00
committed by GitHub
parent 6a6ef8d2ad
commit f10d3284ba
9 changed files with 67 additions and 6 deletions
@@ -76,7 +76,10 @@ export const handleOAuthOrganisationCallbackUrl = async (
},
});
await onCreateUserHook(userToLink).catch((err) => {
await onCreateUserHook(userToLink, {
skipPersonalOrganisation:
!organisation.organisationAuthenticationPortal.allowPersonalOrganisations,
}).catch((err) => {
// Todo: (RR7) Add logging.
console.error(err);
});