Expand description
GitHub API client and device flow authentication.
This module provides:
GithubClient— a thin blocking HTTP wrapper for the GitHub REST APIdevice_flow— token persistence helpers (save_token,load_token)- Shared types used by both the client and callers
Re-exports§
pub use crate::http::CLIENT_TIMEOUT_SECS;
Modules§
Structs§
- Device
Code Response - Response from the GitHub device code endpoint.
- Github
Client - Thin HTTP wrapper around the GitHub REST API.
- Scope
Error - Error returned when a GitHub token lacks required OAuth scopes.
Enums§
- Github
Error - OtaProgress
- Progress states during an OTA download operation.
- Token
Poll Result - Result of a single poll attempt during device flow.
- Verify
Scopes Error - Error returned by
crate::github::GithubClient::verify_token_scopes.
Constants§
- REQUIRED_
SCOPES - OAuth scopes that the saved token must have for OTA operations to succeed.