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

Method SetTokenRefresher

internal/gh/gh.go:314–314  ·  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

312 // refresher depends on the plain HTTP client, which is only available once the command factory has assembled its
313 // dependencies.
314 SetTokenRefresher(refresher TokenRefresher)
315
316 // The following methods are only for testing and that is a design smell we should consider fixing.
317

Callers 6

configWithTokenRefresherFunction · 0.65
Test_refreshRunFunction · 0.65
setRefresherFunction · 0.65
setRefresherFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 5

Test_refreshRunFunction · 0.52
setRefresherFunction · 0.52
setRefresherFunction · 0.52