feat: increase token expiration time

because my isp is BUNS BRO
This commit is contained in:
2025-09-12 10:03:15 +03:00
parent d8214dd7eb
commit 106f29cfb9

View File

@@ -177,7 +177,7 @@ impl YouTubeUploader {
.ok_or("No access token in response")? .ok_or("No access token in response")?
.to_string(); .to_string();
let expires_in = token_data["expires_in"].as_u64().unwrap_or(3600); let expires_in = token_data["expires_in"].as_u64().unwrap_or(10800);
let expires_at = Some(Utc::now() + Duration::seconds(expires_in as i64)); let expires_at = Some(Utc::now() + Duration::seconds(expires_in as i64));
Ok(StoredTokens { Ok(StoredTokens {