Add logging when we refresh a token to see if it ever works
This commit is contained in:
parent
e34d84d7fb
commit
926519c908
|
@ -73,6 +73,7 @@ pub async fn monzo_client_freshened(
|
||||||
drop(state_inner);
|
drop(state_inner);
|
||||||
let needs_refresh = exp_at_instant < SystemTime::now();
|
let needs_refresh = exp_at_instant < SystemTime::now();
|
||||||
if needs_refresh {
|
if needs_refresh {
|
||||||
|
eprintln!("Refreshing token.");
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
let auth_resp: MonzoAuthResponse = client
|
let auth_resp: MonzoAuthResponse = client
|
||||||
.post("https://api.monzo.com/oauth2/token")
|
.post("https://api.monzo.com/oauth2/token")
|
||||||
|
|
Loading…
Reference in New Issue