purwa-auth 0.2.0

Session and token authentication for Purwa — tower-sessions, axum-login, Argon2id
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Authentication errors.

use thiserror::Error;

/// Password hashing or verification failure.
#[derive(Debug, Error)]
pub enum PasswordError {
    #[error("password hashing failed: {0}")]
    Hash(String),
    #[error("invalid password hash in storage")]
    InvalidHash,
    #[error("password verification failed")]
    Verify,
}