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

Method TokenFromKeyring

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

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

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls