@nebius/js-sdk - v0.2.54
    Preparing search index...

    Class AuthMetricsRecorder

    Sends normalized authorization events to a shared callback set.

    This is a low-level helper for credential implementations. Application code normally passes callbacks through SDKOptions.metrics or SDKOptions.authMetrics.

    Recorder instances created with withProvider share the same mutable callback set. Calling setMetrics on one of them updates all recorder instances in that group.

    Index
    provider: string

    Identifies the credential provider on every emitted event.

    • Records a token lifetime when the token has an expiration time.

      Tokens without an expiration time do not produce an event.

      Parameters

      Returns void

    • Records a token refresh.

      Parameters

      • result: MetricResult
      • durationMs: number
      • background: boolean = true

      Returns void