MCPcopy Create free account
hub / github.com/cli/cli / SetTokenRefresher

Method SetTokenRefresher

internal/gh/gh.go:323–323  ·  view source on GitHub ↗

SetTokenRefresher supplies the refresher used to renew tokens. It is provided after construction because the refresher depends on the plain HTTP client, which is only available once the command factory has assembled its dependencies.

(refresher TokenRefresher)

Source from the content-addressed store, hash-verified

321 // refresher depends on the plain HTTP client, which is only available once the command factory has assembled its
322 // dependencies.
323 SetTokenRefresher(refresher TokenRefresher)
324
325 // SetTelemetryRecorder supplies the recorder used to report token refresh attempts. It is provided after
326 // construction because the telemetry service depends on configuration read through this AuthConfig.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls