revery 0.1.2

💭 Conversations that never happened.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

/// Errors that can occur during SPAKE2 authentication
#[derive(Debug, Error)]
pub enum AuthError {
    /// SPAKE2 protocol error (typically wrong password or malformed messages)
    #[error("SPAKE2 authentication failed")]
    AuthenticationFailed(#[from] spake2::Error),
    /// AuthFlow was already consumed or challenge verification failed
    #[error("AuthFlow has already been consumed")]
    InvalidState,
}