mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-19 05:09:26 +00:00
oidc: Remove all dependencies on other rustical crates
This commit is contained in:
10
crates/oidc/src/user_store.rs
Normal file
10
crates/oidc/src/user_store.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use actix_web::ResponseError;
|
||||
use async_trait::async_trait;
|
||||
|
||||
#[async_trait(?Send)]
|
||||
pub trait UserStore: 'static {
|
||||
type Error: ResponseError;
|
||||
|
||||
async fn user_exists(&self, id: &str) -> Result<bool, Self::Error>;
|
||||
async fn insert_user(&self, id: &str) -> Result<(), Self::Error>;
|
||||
}
|
||||
Reference in New Issue
Block a user