1 parent a0641f9 commit cc269a5Copy full SHA for cc269a5
1 file changed
src/main.rs
@@ -919,9 +919,20 @@ fn main() -> anyhow::Result<()> {
919
.post(&viz_url)
920
.header("Content-Type", "application/json");
921
922
- if let indra_db::Auth::ApiKey(ref key) = sync_config.auth {
923
- viz_request = viz_request
924
- .header("Authorization", format!("Bearer {}", key));
+ match &sync_config.auth {
+ indra_db::Auth::AccessToken(token) => {
+ viz_request = viz_request.header(
925
+ "Authorization",
926
+ format!("Bearer {}", token),
927
+ );
928
+ }
929
+ indra_db::Auth::ApiKey(key) => {
930
931
932
+ format!("Bearer {}", key),
933
934
935
+ indra_db::Auth::None => {}
936
}
937
938
match viz_request.json(viz_data).send() {
0 commit comments