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

Method TokenFromKeyring

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

250
251 // TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
252 TokenFromKeyring(hostname string) (token string, err error)
253
254 // TokenFromKeyringForUser will retrieve the auth token for the given hostname and username, only searching
255 // in encrypted storage.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls