diff options
| author | rtkay123 <dev@kanjala.com> | 2026-04-05 15:17:55 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-04-05 15:17:55 +0200 |
| commit | 3f708c5fffed105b27965f8e844a26de6bdf9662 (patch) | |
| tree | fbed157ae7fc15a26a86fba5e0b8b9c5107ee07f /crates/api-auth/src/lib.rs | |
| parent | e86366c6d68b9d3d2af4ac4afb5cf7d5a8400dde (diff) | |
| download | sellershut-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.rs | 6 |
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}; |
