Skip to content

Commit f4409fb

Browse files
committed
docs(auth): note that the SSO fence and trustEmailVerified are layered
1 parent 4af8d42 commit f4409fb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/sim/app/api/auth/[...all]/route.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ function isBlockedOrganizationMutationPath(path: string): boolean {
3838
* into their account. `sso/delete-provider` likewise lets an owner drop a login
3939
* path outside the application's flow.
4040
*
41+
* `trustEmailVerified: false` independently defuses that claim, so these two
42+
* guards are layered, not redundant: this one keeps provider configuration
43+
* owned by the register route (which alone proves domain ownership) and is what
44+
* stops the mapping rewrite from becoming live again if that option is ever
45+
* reconsidered.
46+
*
4147
* Deny-by-default rather than a blocklist so a future plugin version cannot
4248
* introduce another unshadowed provider mutation.
4349
*/

0 commit comments

Comments
 (0)