Skip to main content

github_mcp/auth/
errors.rs

1// GitHub v3 REST API MCP server — generated by mcpify. Do not hand-edit.
2
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum AuthError {
7    #[error("missing required credential field(s): {0}")]
8    MissingCredentials(String),
9
10    #[error("access token expired and could not be refreshed")]
11    TokenExpired,
12
13    #[error("no valid credentials for auth method '{0}'; run `github-mcp setup`")]
14    NoActiveCredentials(String),
15}