Finishing touches

This commit is contained in:
Daniel Hougaard
2024-08-29 03:43:28 +04:00
parent 358508dc4f
commit f2f4785a6d
7 changed files with 86 additions and 305 deletions

17
test/index.js Normal file
View File

@@ -0,0 +1,17 @@
const { InfisicalSDK } = require("../lib");
(async () => {
const client = new InfisicalSDK();
await client.auth().universalAuth.login({
clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET"
});
const secrets = await client.secrets().listSecrets({
environment: "dev",
workspaceId: "PROJECT_ID"
});
console.log(secrets.secrets);
})();