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

Method LoginRefreshable

pkg/cmd/auth/shared/login_flow_test.go:38–44  ·  view source on GitHub ↗
(host, username string, credential gh.Credential, gitProtocol string, encrypt bool)

Source from the content-addressed store, hash-verified

36}
37
38func (c tinyConfig) LoginRefreshable(host, username string, credential gh.Credential, gitProtocol string, encrypt bool) (bool, error) {
39 c[fmt.Sprintf("%s:%s", host, "user")] = username
40 c[fmt.Sprintf("%s:%s", host, "oauth_token")] = credential.Token
41 c[fmt.Sprintf("%s:%s", host, "refresh_token")] = credential.RefreshToken
42 c[fmt.Sprintf("%s:%s", host, "git_protocol")] = gitProtocol
43 return false, nil
44}
45
46func (c tinyConfig) UsersForHost(hostname string) []string {
47 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected