Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ expectScopes
Function
expectScopes
pkg/cmd/auth/status/status.go:358–360 ·
view source on GitHub ↗
(token string)
Source
from the content-addressed store, hash-verified
356
}
357
358
func
expectScopes(token string) bool {
359
return
strings.HasPrefix(token,
"ghp_"
) || strings.HasPrefix(token,
"gho_"
)
360
}
361
362
type
buildEntryOptions
struct
{
363
active bool
Callers
1
String
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected