Module github

Module github 

Source
Expand description

GitHub API client and device flow authentication.

This module provides:

  • GithubClient — a thin blocking HTTP wrapper for the GitHub REST API
  • device_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§

client 🔒
device_flow
types 🔒

Structs§

DeviceCodeResponse
Response from the GitHub device code endpoint.
GithubClient
Thin HTTP wrapper around the GitHub REST API.
ScopeError
Error returned when a GitHub token lacks required OAuth scopes.

Enums§

GithubError
OtaProgress
Progress states during an OTA download operation.
TokenPollResult
Result of a single poll attempt during device flow.
VerifyScopesError
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.