Update index.ts

This commit is contained in:
Daniel Hougaard
2024-09-24 00:21:52 +04:00
parent c02fe3566b
commit f56685aeae

View File

@@ -1,14 +1,15 @@
import { InfisicalSDK } from "../src"; import { InfisicalSDK } from "../src";
const PROJECT_ID = "65a02bdfa77d9b8197956da1"; const PROJECT_ID = "PROJECT_ID";
(async () => { (async () => {
const client = new InfisicalSDK({ const client = new InfisicalSDK({
siteUrl: "http://localhost:8080" // Optional, defaults to https://app.infisical.com siteUrl: "http://localhost:8080" // Optional, defaults to https://app.infisical.com
}); });
await client.auth().awsIamAuth.login({ await client.auth().universalAuth.login({
identityId: "84b548bf-6556-40f6-9ef9-838708fae049" clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET"
}); });
const allSecrets = await client.secrets().listSecrets({ const allSecrets = await client.secrets().listSecrets({