Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix: CLI expanding secrets

Daniel Hougaard1b74fdb23234
diff --git a/cli/packages/util/helper.go b/cli/packages/util/helper.go
index 413afb2b88..11b3396dc2 100644
--- a/cli/packages/util/helper.go
+++ b/cli/packages/util/helper.go
@@ -97,6 +97,11 @@ func RequireLogin() {
}
}
+func IsLoggedIn() bool {
+ configFile, _ := GetConfigFile()
+ return configFile.LoggedInUserEmail != ""
+}
+
func RequireServiceToken() {
serviceToken := os.Getenv(INFISICAL_TOKEN_NAME)
if serviceToken == "" {