1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Handles errors for the `re_auth` crate.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("transparent")]
    Jwt(#[from] jsonwebtoken::errors::Error),

    #[error("transparent")]
    Base64Decode(#[from] base64::DecodeError),

    #[error("transparent")]
    SystemTime(#[from] std::time::SystemTimeError),

    #[error("failed to parse token")]
    MalformedToken,
}