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

Method Logout

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

Logout will remove user, git protocol, and auth token for the given hostname. It will remove the auth token from the encrypted storage if it exists there.

(hostname, username string)

Source from the content-addressed store, hash-verified

190 // Logout will remove user, git protocol, and auth token for the given hostname.
191 // It will remove the auth token from the encrypted storage if it exists there.
192 Logout(hostname, username string) error
193
194 // UsersForHost retrieves a list of users configured for a specific host.
195 UsersForHost(hostname string) []string

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls