Leaving todo

This commit is contained in:
2026-06-10 00:08:50 -04:00
parent ebd9fb0a2e
commit 0f9f55c3c1
+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