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

Function expectScopes

pkg/cmd/auth/status/status.go:362–364  ·  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

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

Callers 1

StringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected