MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / supportsOAuthScopeIntrospection

Function supportsOAuthScopeIntrospection

packages/backend/src/github.ts:50–52  ·  view source on GitHub ↗
(tokenType: GitHubTokenType)

Source from the content-addressed store, hash-verified

48 * Checks if a token type supports OAuth scope introspection via x-oauth-scopes header.
49 */
50export const supportsOAuthScopeIntrospection = (tokenType: GitHubTokenType): boolean => {
51 return SCOPE_INTROSPECTABLE_TOKEN_TYPES.includes(tokenType);
52};
53
54/**
55 * Type guard to check if an error is an Octokit RequestError.

Callers 2

github.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected