From f934942fe1cc7c80ba9836b601c30cec25924ebf Mon Sep 17 00:00:00 2001 From: Evan Sangaline Date: Mon, 8 Jan 2024 15:27:38 -0600 Subject: [PATCH] Fix API-key/team association The selected team ID was not being associated with the newly created API key in `sindri login`. This adds the necessary header to properly associate it. Merges #47 --- src/cli/login.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/login.ts b/src/cli/login.ts index c3040fd..f2183ae 100644 --- a/src/cli/login.ts +++ b/src/cli/login.ts @@ -101,6 +101,7 @@ export const loginCommand = new Command() } // Generate an API key. + OpenAPI.HEADERS = { "Sindri-Team-Id": `${teamId}` }; const apiKeyResult = await AuthorizationService.apikeyGenerate({ username, password,