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

Method IsRefreshable

pkg/auth/credential.go:54–56  ·  view source on GitHub ↗

IsRefreshable reports whether the credential carries a refresh token and can therefore be renewed by gh.

()

Source from the content-addressed store, hash-verified

52
53// IsRefreshable reports whether the credential carries a refresh token and can therefore be renewed by gh.
54func (c Credential) IsRefreshable() bool {
55 return c.RefreshToken != ""
56}

Callers 6

tokenRunFunction · 0.95
helperRunFunction · 0.80
refreshRunFunction · 0.80
buildEntryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected