chore(oauth): add additional logging to login routine

This commit is contained in:
Matthew Esposito 2024-09-26 15:06:39 -04:00
parent 6b44c1abf2
commit 6e2e679a0e

View File

@ -97,6 +97,8 @@ impl Oauth {
let client: client::Client<_, Body> = CLIENT.clone();
let resp = client.request(request).await.ok()?;
trace!("Received response with status {} and length {:?}", resp.status(), resp.headers().get("content-length"));
// Parse headers - loid header _should_ be saved sent on subsequent token refreshes.
// Technically it's not needed, but it's easy for Reddit API to check for this.
// It's some kind of header that uniquely identifies the device.