axum_csrf 0.11.0

Library to Provide a CSRF (Cross-Site Request Forgery) protection layer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
pub enum CsrfError {
    #[error("Token could not be hashed.")]
    PasswordHash,
    #[error("Verification Failed.")]
    Verify,
    #[error("Could not Encode Salt.")]
    Salt,
    #[error("Could not Hash Token.")]
    Token,
}