verify_scopes

Function verify_scopes 

Source
fn verify_scopes(github: &GithubClient) -> Result<(), OtaError>
Expand description

Verifies that the GitHub token has all scopes required for OTA operations.

Delegates to GithubClient::verify_token_scopes, which reads the X-OAuth-Scopes header from a lightweight /user request and compares against crate::github::REQUIRED_SCOPES.

Returns Ok(()) if all scopes are present, or an OtaError that is either a transport failure or missing scopes, so the caller can trigger re-authentication.