rustical_oidc/
user_store.rs

1use async_trait::async_trait;
2use axum::response::IntoResponse;
3
4#[async_trait]
5pub trait UserStore: 'static + Send {
6    type Error: IntoResponse;
7
8    async fn user_exists(&self, id: &str) -> Result<bool, Self::Error>;
9    async fn insert_user(&self, id: &str) -> Result<(), Self::Error>;
10}