Finishing touches
This commit is contained in:
17
test/index.js
Normal file
17
test/index.js
Normal 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);
|
||||
})();
|
||||
Reference in New Issue
Block a user