purwa_auth/error.rs
1//! Authentication errors.
2
3use thiserror::Error;
4
5/// Password hashing or verification failure.
6#[derive(Debug, Error)]
7pub enum PasswordError {
8 #[error("password hashing failed: {0}")]
9 Hash(String),
10 #[error("invalid password hash in storage")]
11 InvalidHash,
12 #[error("password verification failed")]
13 Verify,
14}