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

Method TokenForUser

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

TokenForUser retrieves the authentication token and its source for a specified user and hostname.

(hostname, user string)

Source from the content-addressed store, hash-verified

152
153 // TokenForUser retrieves the authentication token and its source for a specified user and hostname.
154 TokenForUser(hostname, user string) (token string, source string, err error)
155
156 // The following methods are only for testing and that is a design smell we should consider fixing.
157

Callers 5

tokenRunFunction · 0.65
statusRunFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 3