Queued song linked to user

This commit is contained in:
kdeng00
2025-08-28 12:59:05 -04:00
parent 9d998938b2
commit 5716046e34
3 changed files with 49 additions and 3 deletions
+7
View File
@@ -19,3 +19,10 @@ fn retrieve_url_with_id(api: &models::api::Api, id: &uuid::Uuid) -> String {
url
}
pub async fn auth_header(token: &icarus_models::token::AccessToken) -> (http::HeaderName, http::HeaderValue) {
let auth = reqwest::header::AUTHORIZATION;
let auth_value = http::HeaderValue::from_str(&token.bearer_token()).unwrap();
(auth, auth_value)
}