From d294f63f54ef7fe5c19800dc91c6dc43874e5ab9 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Fri, 26 Sep 2025 20:16:37 +0400 Subject: [PATCH] Update index.js --- test/index.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/test/index.js b/test/index.js index 6ac50d3..f9e0ccf 100644 --- a/test/index.js +++ b/test/index.js @@ -1,17 +1,13 @@ const { InfisicalSDK } = require("../lib"); (async () => { - const client = new InfisicalSDK(); + const client = new InfisicalSDK({ + siteUrl: "https://bd87c650dfad.ngrok.app" + }); - await client.auth().universalAuth.login({ - clientId: "CLIENT_ID", - clientSecret: "CLIENT_SECRET" - }); + await client.auth().awsIamAuth.login({ + identityId: "8c7ed837-8246-4ec4-aa65-508cf1349529" + }); - const secrets = await client.secrets().listSecrets({ - environment: "dev", - workspaceId: "PROJECT_ID" - }); - - console.log(secrets.secrets); + console.log(client.auth().getAccessToken()); })();