Add logging when we refresh a token to see if it ever works

This commit is contained in:
Olivier 'reivilibre' 2021-11-13 07:56:36 +00:00
parent e34d84d7fb
commit 926519c908
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ pub async fn monzo_client_freshened(
drop(state_inner);
let needs_refresh = exp_at_instant < SystemTime::now();
if needs_refresh {
eprintln!("Refreshing token.");
let client = reqwest::Client::new();
let auth_resp: MonzoAuthResponse = client
.post("https://api.monzo.com/oauth2/token")