Remove redundant auth schema set (defaults to Bearer)

This commit is contained in:
Daniel Hougaard
2024-06-15 08:59:00 +02:00
parent 1835777832
commit 24935f4e07
2 changed files with 1 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ var secretsDeleteCmd = &cobra.Command{
}
if token != nil && (token.Type == util.SERVICE_TOKEN_IDENTIFIER || token.Type == util.UNIVERSAL_AUTH_TOKEN_IDENTIFIER) {
httpClient.SetAuthScheme("Bearer").SetAuthToken(token.Token)
httpClient.SetAuthToken(token.Token)
} else {
util.RequireLogin()
util.RequireLocalWorkspaceFile()

View File

@@ -1017,7 +1017,6 @@ func SetRawSecrets(secretArgs []string, secretType string, environmentName strin
}
httpClient := resty.New().
SetAuthScheme("Bearer").
SetAuthToken(tokenDetails.Token).
SetHeader("Accept", "application/json")