From f56685aeae24edda825e940405cdab9996aa788c Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 24 Sep 2024 00:21:52 +0400 Subject: [PATCH] Update index.ts --- test/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/index.ts b/test/index.ts index b44059f..725a7b0 100644 --- a/test/index.ts +++ b/test/index.ts @@ -1,14 +1,15 @@ import { InfisicalSDK } from "../src"; -const PROJECT_ID = "65a02bdfa77d9b8197956da1"; +const PROJECT_ID = "PROJECT_ID"; (async () => { const client = new InfisicalSDK({ siteUrl: "http://localhost:8080" // Optional, defaults to https://app.infisical.com }); - await client.auth().awsIamAuth.login({ - identityId: "84b548bf-6556-40f6-9ef9-838708fae049" + await client.auth().universalAuth.login({ + clientId: "CLIENT_ID", + clientSecret: "CLIENT_SECRET" }); const allSecrets = await client.secrets().listSecrets({