aboutsummaryrefslogtreecommitdiffstats
path: root/crates/api-auth/src/discord
diff options
context:
space:
mode:
Diffstat (limited to 'crates/api-auth/src/discord')
-rw-r--r--crates/api-auth/src/discord/mod.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/crates/api-auth/src/discord/mod.rs b/crates/api-auth/src/discord/mod.rs
index 43a62bf..ffa5a68 100644
--- a/crates/api-auth/src/discord/mod.rs
+++ b/crates/api-auth/src/discord/mod.rs
@@ -1,15 +1,10 @@
use api_core::models::user::User;
-use async_session::{Session, serde_json};
use async_trait::async_trait;
-use oauth2::{AuthorizationCode, CsrfToken, TokenResponse};
-use redis::AsyncCommands;
use serde::{Deserialize, Serialize};
-use sh_util::cache::{CacheKey, RedisManager};
+use sh_util::cache::RedisManager;
use sqlx::PgPool;
-use crate::{
- BasicClient, CSRF_TOKEN, OauthDriver, SessionResponse, client::AuthHttpClient, error::AuthError,
-};
+use crate::{BasicClient, OauthDriver, SessionResponse, client::AuthHttpClient, error::AuthError};
// The user data we'll get back from Discord.
// https://discord.com/developers/docs/resources/user#user-object-user-structure
@@ -72,7 +67,7 @@ impl OauthDriver for AuthServiceDiscord {
crate::util::create_oauth_session(&self.client, &self.cache, &["identify", "email"]).await
}
- async fn save_session(&self, user: &User) -> Result<(), AuthError> {
+ async fn save_session(&self, _user: &User) -> Result<(), AuthError> {
todo!()
}
}