(tokenType: GitHubTokenType)
| 48 | * Checks if a token type supports OAuth scope introspection via x-oauth-scopes header. |
| 49 | */ |
| 50 | export 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. |
no outgoing calls
no test coverage detected