//! Authentication related error types. /// Authentication prompt handler error. #[derive(Debug, thiserror::Error)] pub enum AuthPromptHandlerError { /// HTTP server failed to bind to a address. #[error("HTTP server failed to bind to address")] BindAddressFailed, } /// Access token request error. #[derive(Debug, thiserror::Error)] pub enum AccessTokenRequestError { /// Sending access token request failed. #[error("Sending access token request failed")] SendFailed(#[from] reqwest::Error), /// Parsing access token respone failed. #[error("Parsing access token respone failed")] ResponseParseFailed, }