Skip to content

IGitHubOAuthTokenProvider

NexusLabs.Needlr.Copilot

IGitHubOAuthTokenProvider Interface

Provides the raw GitHub OAuth token used for GitHub API calls (token exchange) and MCP server authentication. This is the foundational credential — the Copilot API token is derived from it via ICopilotTokenProvider.

public interface IGitHubOAuthTokenProvider

Methods

IGitHubOAuthTokenProvider.GetOAuthToken() Method

Gets the raw GitHub OAuth token (e.g., gho_xxx from apps.json or GH_TOKEN).

string GetOAuthToken();

Returns

System.String
The raw OAuth token string.