createDomain
suspend fun Organization.createDomain(name: String): ClerkResult<OrganizationDomain, ClerkErrorResponse>
Creates a new domain for this organization.
Domains allow organization members to join automatically when they sign up with an email address that matches the domain. This can help streamline the onboarding process for organization members.
Return
A ClerkResult containing the created OrganizationDomain on success, or a ClerkErrorResponse on failure.
Parameters
name
The domain name to create (e.g., "example.com").