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

Method Refresh

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

Refresh exchanges the given refresh token for a renewed credential on the given hostname.

(refreshToken string, hostname string)

Source from the content-addressed store, hash-verified

216type TokenRefresher interface {
217 // Refresh exchanges the given refresh token for a renewed credential on the given hostname.
218 Refresh(refreshToken string, hostname string) (RefreshableCredential, error)
219}
220
221// AuthConfig is used for interacting with some persistent configuration for gh,

Callers 3

logoutWithRevocationFunction · 0.65
RefreshMethod · 0.65

Implementers 2

TokenRefresherinternal/authflow/refresh.go
TokenRefresherMockinternal/gh/mock/token_refresher.go

Calls

no outgoing calls

Tested by

no test coverage detected