Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 40b8c56

Browse files
committed
feat: debugging
1 parent 9a6be13 commit 40b8c56

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

crates/core/src/auth/microsoft.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ pub fn ouath_token(
179179
"https://login.microsoftonline.com/consumers/oauth2/v2.0/token"
180180
};
181181

182+
println!("URL: {}", url);
183+
182184
// Use owned Strings for both keys and values
183185
let mut form = HashMap::new();
184186
form.insert("client_id".to_string(), client_id.to_string());
@@ -197,6 +199,8 @@ pub fn ouath_token(
197199
form.insert("redirect_uri".to_string(), redirect_uri);
198200
}
199201

202+
println!("Form: {:?}", form);
203+
200204
async move {
201205
'out: {
202206
let result = client.post(url).form(&form).send().await;
@@ -212,6 +216,8 @@ pub fn ouath_token(
212216
.await
213217
.map_err(|_| AuthErrors::ResponseError("Failed to send request".to_string()))?;
214218

219+
println!("Text: {}", text);
220+
215221
let std::result::Result::Ok(token) = serde_json::from_str::<OuathToken>(&text) else {
216222
break 'out Err(AuthErrors::ResponseError(
217223
"Failed to send request, Check your Client Secret.".to_string(),

0 commit comments

Comments
 (0)