Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update root.go
Daniel Hougaard7f055450df24
diff --git a/cli/packages/cmd/root.go b/cli/packages/cmd/root.goindex 586c47e38f..1b66d92794 100644--- a/cli/packages/cmd/root.go+++ b/cli/packages/cmd/root.go@@ -57,7 +57,7 @@ func init() {loggedInDetails, err := util.GetCurrentLoggedInUserDetails()// If the user is logged in and their session is not expired, then we check if token auth is also being used concurrently.- if err == nil && loggedInDetails.IsUserLoggedIn && !loggedInDetails.LoginExpired {+ if !silent && err == nil && loggedInDetails.IsUserLoggedIn && !loggedInDetails.LoginExpired {token, err := util.GetInfisicalToken(cmd)// If token auth is being used concurrently, we warn the user that the token will be used instead of the logged in user's credentials.