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

Function expectScopes

pkg/cmd/auth/status/status.go:363–365  ·  view source on GitHub ↗

TODO: this matches a token prefix itself. It could ask gh.AuthConfig.ActiveTokenType instead.

(token string)

Source from the content-addressed store, hash-verified

361// TODO: this matches a token prefix itself. It could ask
362// gh.AuthConfig.ActiveTokenType instead.
363func expectScopes(token string) bool {
364 return strings.HasPrefix(token, "ghp_") || strings.HasPrefix(token, "gho_")
365}
366
367type buildEntryOptions struct {
368 active bool

Callers 1

StringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected