Skip to content

Commit

Permalink
update oauth refresh token on fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
acedward committed Feb 4, 2025
1 parent cba218a commit b70f0ea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ pub async fn handle_oauth(
Some(Utc::now() + chrono::Duration::seconds(expires_in));
}
}
if let Some(refresh_token) = response_json["refresh_token"].as_str() {
updated_token.refresh_token = Some(refresh_token.to_string());
}

// Update token in database
let _ = db.update_oauth_token(&updated_token);
Expand Down

0 comments on commit b70f0ea

Please sign in to comment.