diff --git a/dist/index.js b/dist/index.js index d80f343..5a59b77 100644 --- a/dist/index.js +++ b/dist/index.js @@ -35920,7 +35920,7 @@ async function validateApiToken(token, baseUrl) { const response = await axios.get(`${baseUrl}/v1/user/self/`, { headers: { accept: "application/json", - "X-Api-Key": token, + Authorization: `Bearer ${token}`, }, timeout: REQUEST_TIMEOUT_MS, }); diff --git a/src/oidc-auth.js b/src/oidc-auth.js index 0f98c5e..7ebe78f 100644 --- a/src/oidc-auth.js +++ b/src/oidc-auth.js @@ -220,7 +220,7 @@ async function validateApiToken(token, baseUrl) { const response = await axios.get(`${baseUrl}/v1/user/self/`, { headers: { accept: "application/json", - "X-Api-Key": token, + Authorization: `Bearer ${token}`, }, timeout: REQUEST_TIMEOUT_MS, });