isManagedOAuthContext function

bool isManagedOAuthContext()

Whether we are in a managed OAuth context (CCR or Neomage Desktop).

Implementation

bool isManagedOAuthContext() {
  return _isEnvTruthy(Platform.environment['MAGE_REMOTE']) ||
      Platform.environment['MAGE_ENTRYPOINT'] == 'claude-desktop';
}