aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auth-service/src/lib.rs
blob: 0965f86d76f3a573cc981f502fd72d26e09e0db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub mod client;
mod service;
pub use service::*;

use thiserror::Error;

pub enum Provider {
    Discord,
}

#[derive(Error, Debug)]
pub enum AuthServiceError {
    #[error("invalid url provided")]
    InvalidUrl(#[from] url::ParseError),
    #[error("the data for key `{0}` is not available")]
    Redaction(String),
    #[error("invalid header (expected {expected:?}, found {found:?})")]
    InvalidHeader { expected: String, found: String },
    #[error("unknown data store error")]
    Unknown,
}