cadmus_core/github/mod.rs
1//! GitHub API client and device flow authentication.
2//!
3//! This module provides:
4//! - [`GithubClient`] — a thin blocking HTTP wrapper for the GitHub REST API
5//! - [`device_flow`] — token persistence helpers (`save_token`, `load_token`)
6//! - Shared types used by both the client and callers
7
8mod client;
9pub mod device_flow;
10pub(crate) mod types;
11
12pub use crate::http::CLIENT_TIMEOUT_SECS;
13pub use client::GithubClient;
14pub use client::REQUIRED_SCOPES;
15pub use types::{
16 DeviceCodeResponse, GithubError, OtaProgress, ScopeError, TokenPollResult, VerifyScopesError,
17};