oidc: Remove all dependencies on other rustical crates

This commit is contained in:
Lennart
2025-04-20 22:12:52 +02:00
parent be9712241c
commit 0c940b595e
7 changed files with 107 additions and 59 deletions

View 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>;
}