Skip to main content

jj_ryu/auth/
mod.rs

1//! Authentication for GitHub and GitLab
2//!
3//! Supports CLI-based auth (gh, glab) and environment variables.
4
5mod github;
6mod gitlab;
7
8pub use github::{GitHubAuthConfig, get_github_auth, test_github_auth};
9pub use gitlab::{GitLabAuthConfig, get_gitlab_auth, test_gitlab_auth};
10
11/// Source of authentication token
12#[derive(Debug, Clone, Copy, PartialEq, Eq)]
13pub enum AuthSource {
14    /// Token from CLI tool (gh or glab)
15    Cli,
16    /// Token from environment variable
17    EnvVar,
18}