@grow-codes/oidc - v0.1.2
    Preparing search index...

    Class OidcClient

    Client for OIDC.

    Index
    config: OidcConfig

    The immutable configuration.

    • Releases connections. Idempotent.

      Returns Promise<void>

    • Unauthenticated liveness: GET <url>/.well-known/openid-configuration (healthy when the discovery document answers 2xx). Never throws for an unhealthy or unreachable provider (only CANCELLED and CONFIG).

      Parameters

      Returns Promise<HealthStatus>

    • Authenticated round trip with the configured access token (token): GET the provider's userinfo_endpoint from discovery. Returns the latency in milliseconds; a rejected token raises AuthenticationError, a provider without userinfo UnsupportedError.

      Parameters

      Returns Promise<number>

    • OpenID Connect has no version endpoint: always UnsupportedError (CANCELLED once closed).

      Parameters

      Returns Promise<string>