mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-15 22:12:25 -06:00
refactor: remove unnecessary HashMap for passing code/state strings, formatter lifetime tweak
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user