authbox 0.2.5

A lightweight, modular authentication framework for Rust built around traits, async support, and pluggable component
Documentation
1
2
3
4
5
6
7
8
use async_trait::async_trait;

#[async_trait]
pub trait OneTimeTokenStore {
    async fn set(&self, key: &str, value: &str, ttl_seconds: u64);
    async fn get(&self, key: &str) -> Option<String>;
    async fn delete(&self, key: &str);
}