Fix: Use constant identifiers

This commit is contained in:
Daniel Hougaard
2024-04-16 10:15:07 +02:00
parent a4a961996b
commit 3a6ec3717b
6 changed files with 27 additions and 24 deletions

View File

@@ -56,9 +56,9 @@ var getCmd = &cobra.Command{
FoldersPath: foldersPath,
}
if token != nil && token.Type == "service-token" {
if token != nil && token.Type == util.SERVICE_TOKEN_IDENTIFIER {
request.InfisicalToken = token.Token
} else if token != nil && token.Type == "universal-auth-token" {
} else if token != nil && token.Type == util.UNIVERSAL_AUTH_TOKEN_IDENTIFIER {
request.UniversalAuthAccessToken = token.Token
}