Fix: Cleanup

This commit is contained in:
Daniel Hougaard
2024-03-26 23:54:11 +01:00
parent 4d7182c9b1
commit 016f22c295
3 changed files with 16 additions and 16 deletions

View File

@@ -479,7 +479,7 @@ func (tm *AgentManager) GetToken() string {
// Fetches a new access token using client credentials
func (tm *AgentManager) FetchNewAccessToken() error {
clientID := os.Getenv("INFISICAL_UNIVERSAL_AUTH_CLIENT_ID")
clientID := os.Getenv(util.INFISICAL_UNIVERSAL_AUTH_CLIENT_ID_NAME)
if clientID == "" {
clientIDAsByte, err := ReadFile(tm.clientIdPath)
if err != nil {