Skip to content

Commit

Permalink
Fix API-key/team association
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sangaline authored Jan 8, 2024
1 parent ee60ed8 commit f934942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cli/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f934942

Please sign in to comment.