Adding more code to the syncers module

This commit is contained in:
kdeng00
2024-05-12 16:06:10 -04:00
parent bf2d760aa4
commit aab17f6f3c
6 changed files with 148 additions and 15 deletions
+16
View File
@@ -18,3 +18,19 @@ impl Default for Token {
}
}
}
impl Token {
pub fn bearer_token(&self) -> String {
let mut token: String = String::from("Bearer ");
match &self.access_token {
Some(tok) => {
token += tok;
}
None => {
}
}
return token;
}
}