File tree Expand file tree Collapse file tree
apps/sim/app/api/auth/sso/register Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -645,10 +645,10 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
645645 /**
646646 * Unconditional write of Better Auth's `domainVerified` flag — the value Sim
647647 * mirrors from its own DNS proof, and what lets an SSO sign-in auto-link to an
648- * existing same-email account. Only used to * withdraw* trust, and to grant it on
649- * the org-less (personal) path that Sim never domain-gated. Granting on an
650- * org-scoped provider goes through { @link grantProviderDomainTrust}, which
651- * re-tests ownership in the same statement .
648+ * existing same-email account. Used to withdraw trust, and to set the org-less
649+ * (personal) verdict, which { @link grantProviderDomainTrust} decides from the
650+ * deployment rather than from a domain. Granting on an org-scoped provider goes
651+ * through that same helper, which re-tests ownership in the write itself .
652652 */
653653 const setProviderDomainVerified = async ( verified : boolean ) => {
654654 await db . update ( ssoProvider ) . set ( { domainVerified : verified } ) . where ( ownerClause )
You can’t perform that action at this time.
0 commit comments