use api_core::models::user::User; use async_trait::async_trait; use sqlx::PgPool; use crate::{BasicClient, OauthDriver, error::AuthError}; #[derive(Clone, Debug)] pub struct AuthServiceDiscord { database: PgPool, client: BasicClient, } impl AuthServiceDiscord { pub fn new(database: PgPool, client: BasicClient) -> Self { Self { database, client } } } #[async_trait] impl OauthDriver for AuthServiceDiscord { async fn get_auth_token(&self) -> Result { todo!() } async fn get_user(&self) -> Result { todo!() } async fn create_session(&self, _user: &User) { todo!() } }