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

Struct AuthResult

internal/authflow/flow.go:31–35  ·  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

29// AuthResult carries the outcome of AuthFlow. Refreshable is set only when the server issued a refresh token, so
30// callers can store a refreshable credential in that case and a plain token otherwise.
31type AuthResult struct {
32 Token string
33 Username string
34 Refreshable *gh.Credential
35}
36
37// AuthFlow initiates an OAuth device or web application flow to acquire a
38// 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