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

Method LogoutWithCredential

pkg/cmd/auth/logout/logout_test.go:1318–1322  ·  view source on GitHub ↗
(hostname, username string, beforeLogout func(gh.Credential, error, func(gh.RefreshableCredential) error) error)

Source from the content-addressed store, hash-verified

1316}
1317
1318func (c logoutLockErrorAuthConfig) LogoutWithCredential(hostname, username string, beforeLogout func(gh.Credential, error, func(gh.RefreshableCredential) error) error) error {
1319 return c.AuthConfig.LogoutWithCredential(hostname, username, func(credential gh.Credential, _ error, save func(gh.RefreshableCredential) error) error {
1320 return beforeLogout(credential, c.lockErr, save)
1321 })
1322}
1323
1324func expiredRefreshableCredential(secure bool) func(*testing.T, gh.Config) {
1325 return expiredRefreshableCredentialForHost("github.com", secure)

Callers

nothing calls this directly

Calls 1

LogoutWithCredentialMethod · 0.65

Tested by

no test coverage detected