dioxus-auth 0.0.1

Dioxus-native authentication and session management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::hash::Hash;

pub trait AuthUser: Clone + Send + Sync + 'static {
    type Id: Clone + Eq + Hash + Send + Sync + 'static;

    fn id(&self) -> Self::Id;

    fn session_auth_hash(&self) -> Option<&str> {
        None
    }
}