From 7bcedbefc8ccc71bb76d7fd35ea28f2cf7069ad5 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 20 Oct 2025 13:17:47 -0400 Subject: [PATCH] tsk-55: Using method in LoginResult --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1bf25c5..35bc261 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,8 +31,9 @@ async fn main() -> Result<(), Box> { loop { println!("Token: {:?}", app.token); - if auth::did_token_expire(&app.token).await { + if app.token.token_expired() { println!("Token expired"); + // login_result.token_expired() app.token = match auth::get_refresh_token(&app).await { Ok(login_result) => login_result, Err(err) => {