Files
rustical/crates/oidc/src/user_store.rs
2025-06-08 14:10:12 +02:00

11 lines
293 B
Rust

use async_trait::async_trait;
use axum::response::IntoResponse;
#[async_trait]
pub trait UserStore: 'static + Send {
type Error: IntoResponse;
async fn user_exists(&self, id: &str) -> Result<bool, Self::Error>;
async fn insert_user(&self, id: &str) -> Result<(), Self::Error>;
}