ic_mple_auth 0.12.0

Generic service for managing user authorization and permissions in the Internet Computer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use candid::CandidType;
use serde::{Deserialize, Serialize};
use thiserror::Error;

#[derive(Debug, Error, PartialEq, Eq, CandidType, Serialize, Deserialize, Clone)]
pub enum AuthError {
    #[error("NotAuthorized")]
    NotAuthorized,

    #[error("AnonimousUserNotAllowed")]
    AnonimousUserNotAllowed,
}