Skip to main content

refresh_github_copilot_token

Function refresh_github_copilot_token 

Source
pub async fn refresh_github_copilot_token(
    refresh_token: &str,
    enterprise_domain: Option<&str>,
) -> Result<OAuthCredentials>
Expand description

Mints Copilot credentials from a GitHub user access token without attempting to renew that token. Kept for the login path and backwards compatibility; callers holding full credentials should prefer [refresh_github_copilot_credentials], which can renew an expired GitHub token before minting.