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

Function expectScopes

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

443// TODO: this matches a token prefix itself. It could ask
444// gh.AuthConfig.ActiveTokenType instead.
445func expectScopes(token string) bool {
446 return strings.HasPrefix(token, "ghp_") || strings.HasPrefix(token, "gho_")
447}
448
449type buildEntryOptions struct {
450 active bool

Callers 1

StringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected