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

Method TokenFromKeyring

internal/gh/gh.go:155–155  ·  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

153
154 // TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
155 TokenFromKeyring(hostname string) (token string, err error)
156
157 // TokenFromKeyringForUser will retrieve the auth token for the given hostname and username, only searching
158 // in encrypted storage.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls