Function loadSsoProfile

  • Load and resolve an SSO profile from the config file. Non-default profiles inherit unset keys from [default]. All profiles fall back to built-in defaults and environment variable overrides.

    Node.js only — this function uses node:fs and node:path internally and will throw in browser/edge-worker runtimes.

    Parameters

    • configDir: string

      Resolved config directory path.

    • profileName: string

      Profile name to look up ("default" or a named profile).

    Returns Promise<SsoProfile>

    The resolved profile. Always returns a valid profile using built-in defaults.