MCPcopy
hub / github.com/github/github-mcp-server / FetchTokenScopesWithHost

Function FetchTokenScopesWithHost

pkg/scopes/fetcher.go:135–137  ·  view source on GitHub ↗

FetchTokenScopesWithHost is a convenience function that creates a fetcher for a specific API host and fetches the token scopes.

(ctx context.Context, token string, apiHost utils.APIHostResolver)

Source from the content-addressed store, hash-verified

133// FetchTokenScopesWithHost is a convenience function that creates a fetcher
134// for a specific API host and fetches the token scopes.
135func FetchTokenScopesWithHost(ctx context.Context, token string, apiHost utils.APIHostResolver) ([]string, error) {
136 return NewFetcher(apiHost, FetcherOptions{}).FetchTokenScopes(ctx, token)
137}

Callers

nothing calls this directly

Calls 2

NewFetcherFunction · 0.85
FetchTokenScopesMethod · 0.65

Tested by

no test coverage detected