Add Login #4

Merged
phoenix merged 21 commits from add_login into main 2026-06-10 00:13:55 -04:00
Showing only changes of commit 0f9f55c3c1 - Show all commits
+10
View File
@@ -18,6 +18,16 @@ pub mod response {
pub message: String,
pub data: Vec<textsender_models::token::LoginResult>,
}
pub async fn extract(
response: axum::response::Response,
) -> Result<LoginResponse, std::io::Error> {
let body = axum::body::to_bytes(response.into_body(), usize::MAX)
.await
.unwrap();
let _parsed_body: LoginResponse = serde_json::from_slice(&body).unwrap();
todo!("Add code to convert axum::Response to this type");
}
}
/// Endpoint for a user login