aboutsummaryrefslogtreecommitdiffstats
path: root/crates/api-auth/src/lib.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2026-04-05 15:17:55 +0200
committerrtkay123 <dev@kanjala.com>2026-04-05 15:17:55 +0200
commit3f708c5fffed105b27965f8e844a26de6bdf9662 (patch)
treefbed157ae7fc15a26a86fba5e0b8b9c5107ee07f /crates/api-auth/src/lib.rs
parente86366c6d68b9d3d2af4ac4afb5cf7d5a8400dde (diff)
downloadsellershut-3f708c5fffed105b27965f8e844a26de6bdf9662.tar.bz2
sellershut-3f708c5fffed105b27965f8e844a26de6bdf9662.zip
feat(cli): cache
Diffstat (limited to 'crates/api-auth/src/lib.rs')
-rw-r--r--crates/api-auth/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/api-auth/src/lib.rs b/crates/api-auth/src/lib.rs
index 95a04c4..367d395 100644
--- a/crates/api-auth/src/lib.rs
+++ b/crates/api-auth/src/lib.rs
@@ -20,11 +20,11 @@ type C = oauth2::basic::BasicClient<
pub struct BasicClient(C);
#[async_trait::async_trait]
-pub trait OauthDriver: Send + Sync + std::fmt::Debug {
+pub trait OauthDriver: Send + Sync {
async fn get_auth_token(&self) -> Result<String, AuthError>;
async fn get_user(&self) -> Result<User, AuthError>;
- async fn create_oauth_session(&self)->Result<String, AuthError>;
- async fn save_session(&self, user: &User)->Result<(), AuthError>;
+ async fn create_oauth_session(&self) -> Result<String, AuthError>;
+ async fn save_session(&self, user: &User) -> Result<(), AuthError>;
}
use oauth2::{AuthUrl, ClientId, ClientSecret, RedirectUrl, TokenUrl};