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

Method SetTokenRefresher

internal/config/config.go:307–309  ·  view source on GitHub ↗

SetTokenRefresher supplies the refresher used to renew tokens. Because Authentication returns a single shared AuthConfig, a refresher set once remains available to every later caller.

(refresher gh.TokenRefresher)

Source from the content-addressed store, hash-verified

305// SetTokenRefresher supplies the refresher used to renew tokens. Because Authentication returns a single shared
306// AuthConfig, a refresher set once remains available to every later caller.
307func (c *AuthConfig) SetTokenRefresher(refresher gh.TokenRefresher) {
308 c.refresher = refresher
309}
310
311// SetTelemetryRecorder supplies the recorder used to report token refresh attempts. Because Authentication returns a
312// single shared AuthConfig, a recorder set once remains available to every later caller.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected