@@ -563,11 +563,7 @@ export class WebAuthService extends EventEmitter<AuthServiceEvents> implements A
563
563
) ?. email_address
564
564
}
565
565
566
- // Check for extension_bridge_enabled in user's public metadata
567
- let extensionBridgeEnabled = false
568
- if ( userData . public_metadata ?. extension_bridge_enabled === true ) {
569
- extensionBridgeEnabled = true
570
- }
566
+ let extensionBridgeEnabled = true
571
567
572
568
// Fetch organization info if user is in organization context
573
569
try {
@@ -583,11 +579,7 @@ export class WebAuthService extends EventEmitter<AuthServiceEvents> implements A
583
579
if ( userMembership ) {
584
580
this . setUserOrganizationInfo ( userInfo , userMembership )
585
581
586
- // Check organization public metadata for extension_bridge_enabled
587
- // Organization setting takes precedence over user setting
588
- if ( await this . isExtensionBridgeEnabledForOrganization ( storedOrgId ) ) {
589
- extensionBridgeEnabled = true
590
- }
582
+ extensionBridgeEnabled = await this . isExtensionBridgeEnabledForOrganization ( storedOrgId )
591
583
592
584
this . log ( "[auth] User in organization context:" , {
593
585
id : userMembership . organization . id ,
@@ -608,10 +600,9 @@ export class WebAuthService extends EventEmitter<AuthServiceEvents> implements A
608
600
if ( primaryOrgMembership ) {
609
601
this . setUserOrganizationInfo ( userInfo , primaryOrgMembership )
610
602
611
- // Check organization public metadata for extension_bridge_enabled
612
- if ( await this . isExtensionBridgeEnabledForOrganization ( primaryOrgMembership . organization . id ) ) {
613
- extensionBridgeEnabled = true
614
- }
603
+ extensionBridgeEnabled = await this . isExtensionBridgeEnabledForOrganization (
604
+ primaryOrgMembership . organization . id ,
605
+ )
615
606
616
607
this . log ( "[auth] Legacy credentials: Found organization membership:" , {
617
608
id : primaryOrgMembership . organization . id ,
0 commit comments