blob: 61ff23025947c565102feb34603ab934451e5ef7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
pub use oauth2;
pub mod client;
mod service;
pub use client::http::HttpAuthClient;
pub use service::*;
use thiserror::Error;
#[derive(Debug)]
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,
}
|