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

Method ActiveTokenWithRefresh

pkg/cmd/agent-task/capi/client.go:35–35  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

33// It is satisfied by gh's AuthConfig and lets the transport obtain a fresh token on each request.
34type authConfig interface {
35 ActiveTokenWithRefresh(hostname string) (gh.Credential, gh.RefreshStatus, error)
36}
37
38// NewCAPIClient creates a new CAPI client. Provide an auth source, the user's

Callers 1

RoundTripMethod · 0.65

Implementers 5

skippedRefreshAuthConfigpkg/cmd/auth/refresh/refresh_test.go
sequencedAuthConfigpkg/cmd/agent-task/capi/client_test.go
stubAuthConfigpkg/cmd/agent-task/capi/job_test.go
cfginternal/authflow/flow.go
AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by

no test coverage detected