Skip to content

Commit 7c3aa3b

Browse files
committed
docs(sso): correct the personal-provider trust note after the hosted gating
1 parent ec38a1a commit 7c3aa3b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • apps/sim/app/api/auth/sso/register

apps/sim/app/api/auth/sso/register/route.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)