rs_firebase_admin_sdk/auth/token/
error.rsuse thiserror::Error;
#[derive(Error, Debug, Clone)]
pub enum TokenVerificationError {
#[error("Error happened while parsing the token")]
FailedParsing,
#[error("Error happened while fetching public keys")]
FailedGettingKeys,
#[error("Invalid key for token's signature")]
InvalidSignatureKey,
#[error("Invalid token's signature")]
InvalidSignature,
#[error("Invalid token's signature algorithm")]
InvalidSignatureAlgorithm,
#[error("Token is expired")]
Expired,
#[error("Token was issued in the future")]
IssuedInFuture,
#[error("Token has invalid audience")]
InvalidAudience,
#[error("Token has invalid issuer")]
InvalidIssuer,
#[error("Token has empty subject")]
MissingSubject,
}