mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Remove redundant auth schema set (defaults to Bearer)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1017,7 +1017,6 @@ func SetRawSecrets(secretArgs []string, secretType string, environmentName strin
|
||||
}
|
||||
|
||||
httpClient := resty.New().
|
||||
SetAuthScheme("Bearer").
|
||||
SetAuthToken(tokenDetails.Token).
|
||||
SetHeader("Accept", "application/json")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user