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::{
10 GitLabAuthConfig, get_gitlab_auth, parse_glab_token_from_status, test_gitlab_auth,
11};
12
13/// Source of authentication token
14#[derive(Debug, Clone, Copy, PartialEq, Eq)]
15pub enum AuthSource {
16 /// Token from CLI tool (gh or glab)
17 Cli,
18 /// Token from environment variable
19 EnvVar,
20}