MCPcopy Index your code
hub / github.com/cli/cli / TokenFromKeyring

Method TokenFromKeyring

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

TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.

(hostname string)

Source from the content-addressed store, hash-verified

115
116 // TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
117 TokenFromKeyring(hostname string) (token string, err error)
118
119 // TokenFromKeyringForUser will retrieve the auth token for the given hostname and username, only searching
120 // in encrypted storage.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls