validateForceLoginOrg function

Future<OrgValidationResult> validateForceLoginOrg()

Validate that the active OAuth token belongs to the required org.

Implementation

Future<OrgValidationResult> validateForceLoginOrg() async {
  if (Platform.environment['ANTHROPIC_UNIX_SOCKET'] != null) {
    return const OrgValidationResult.success();
  }
  if (!isAnthropicAuthEnabled()) {
    return const OrgValidationResult.success();
  }
  // Placeholder: full implementation checks forceLoginOrgUUID from policy settings.
  return const OrgValidationResult.success();
}