Node.js SaaS Access: 3 Admission Decisions After Domain TXT Proof A developer outlined a Node.js pattern for B2B SaaS workspace admission that ties automatic membership to a verified company domain TXT record, excluding shared consumer email domains and routing unverified associations to manual approval. The approach keeps hostname cutover separate from employee authorization, and the example inspects a domain-verification capability's discovery schema via an authenticated HTTPS request with retry handling before wiring verification into the admission policy. Let customers publish their domain proof before switching their product hostname, and enable automatic workspace admission only after that proof is verified. Keep manual approval for company domains whose ownership you cannot verify. This separates the wait for DNS evidence from the decision to let a person into a B2B SaaS workspace. TL;DR: Verify the company domain with a TXT record, exclude shared consumer email domains, then look up the authenticated user by email and automatically join the matching workspace. A pending proof stays on the manual approval path. Pointing a customer hostname at your product and authorizing employees are separate decisions; a fast hostname cutover must not silently authorize a whole email suffix. For a solo founder shipping an LLM feature, the immediate concern is a customer reaching the right workspace without waiting days for someone to approve a request. An admission decision should also precede access to that workspace's model budget. Otherwise, shaving time off onboarding can put the wrong person next to customer data and token-consuming features. Treat that ordering as application policy, without promising a particular DNS propagation time. The data flow is straightforward: an administrator associates a company domain with a workspace, publishes a TXT proof, and waits for verification. Your application records the verified association. Later, an authenticated user arrives with a confirmed email address; the application checks the consumer-domain exclusion, finds the verified company-domain association, and looks the user up by email before making the membership decision. If the association is still unverified, route the request to manual approval. In a hypothetical rollout, two employees might arrive on opposite sides of that transition: the first needs approval while proof is pending, and the second becomes eligible automatically after verification. Both should land in the same intended workspace. The transition changes how eligibility is established, not which tenant owns the domain. Keep the gates separate. For the example below, imagine a customer moving its portal to a domain it controls while employees begin using your AI assistant. The hostname can be part of that rollout, but the admission check consumes the company's verified email domain. Do not infer one from the other. The relevant delay is the time until you have acceptable proof, while the relevant cutover decision is when your application can safely change its admission policy. Start by inspecting the verification contract. The read-only example below fetches a discovery schema rather than guessing the TXT payload or interpreting an undocumented response field. Set INFRAI SCHEMA URL to the full discovery-detail URL for the domain-verification capability, and set INFRAI API KEY in the environment. Save this as inspect.ts and run npx tsx inspect.ts ; it prints the contract to use when connecting verification to the admission policy. The URL is configuration so the capability identifier comes from discovery rather than an invented name. js async function inspectVerification : Promise