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

Method SetTokenRefresher

internal/config/config.go:295–297  ·  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

293// SetTokenRefresher supplies the refresher used to renew tokens. Because Authentication returns a single shared
294// AuthConfig, a refresher set once remains available to every later caller.
295func (c *AuthConfig) SetTokenRefresher(refresher gh.TokenRefresher) {
296 c.refresher = refresher
297}
298
299// ActiveTokenType reports what kind of credential the active token is, so a
300// caller that only needs to know that can avoid handling the token. It is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected