tsk-55: Using method in LoginResult
This commit is contained in:
@@ -31,8 +31,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
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) => {
|
||||
|
Reference in New Issue
Block a user