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

Struct AuthResult

internal/authflow/flow.go:30–34  ·  view source on GitHub ↗

AuthResult carries the outcome of AuthFlow. Refreshable is set only when the server issued a refresh token, so callers can store a refreshable credential in that case and a plain token otherwise.

Source from the content-addressed store, hash-verified

28// AuthResult carries the outcome of AuthFlow. Refreshable is set only when the server issued a refresh token, so
29// callers can store a refreshable credential in that case and a plain token otherwise.
30type AuthResult struct {
31 Token string
32 Username string
33 Refreshable *gh.Credential
34}
35
36// AuthFlow initiates an OAuth device or web application flow to acquire a
37// token. The provided HTTP client should be a plain client that does not set

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected