refactor: remove unnecessary HashMap for passing code/state strings, formatter lifetime tweak

This commit is contained in:
Ryan Walters
2025-09-17 13:18:58 -05:00
parent e2f3f6790f
commit 56e02e7253
5 changed files with 21 additions and 51 deletions

View File

@@ -1,5 +1,3 @@
use std::collections::HashMap;
use async_trait::async_trait;
use serde::Serialize;
@@ -24,5 +22,5 @@ pub trait OAuthProvider: Send + Sync {
async fn authorize(&self) -> axum::response::Response;
async fn handle_callback(&self, query: &HashMap<String, String>) -> Result<AuthUser, ErrorResponse>;
async fn handle_callback(&self, code: &str, state: &str) -> Result<AuthUser, ErrorResponse>;
}