Adding code to check the queue

This commit is contained in:
2026-06-24 15:25:00 -04:00
parent b5bb605361
commit 452c63fd14
4 changed files with 100 additions and 1 deletions
+9
View File
@@ -1,4 +1,5 @@
pub mod core;
pub mod queue;
pub mod auth {
pub struct Auth {
@@ -118,3 +119,11 @@ pub mod auth {
now > expire
}
}
pub fn auth_header(
access_token: &str,
) -> (reqwest::header::HeaderName, reqwest::header::HeaderValue) {
let bearer = format!("Bearer {}", access_token);
let header_value = reqwest::header::HeaderValue::from_str(&bearer).unwrap();
(reqwest::header::AUTHORIZATION, header_value)
}