prisma_auth 0.1.0

A simple authentication crate supporting both Rocket backend API and Yew frontend authentication components
Documentation
// src/error.rs
use thiserror::Error;

#[derive(Error, Debug)]
pub enum AuthError {
    #[error("Invalid credentials")]
    InvalidCredentials,
    
    #[error("Token not found")]
    TokenNotFound,
    
    #[error("Token expired")]
    TokenExpired,
    
    #[error("Invalid token format")]
    InvalidTokenFormat,
    
    #[error("Storage error: {0}")]
    StorageError(String),
    
    #[error("Network error: {0}")]
    NetworkError(String),
    
    #[error("Serialization error: {0}")]
    SerializationError(String),
}