Update index.js
This commit is contained in:
@@ -1,17 +1,13 @@
|
|||||||
const { InfisicalSDK } = require("../lib");
|
const { InfisicalSDK } = require("../lib");
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const client = new InfisicalSDK();
|
const client = new InfisicalSDK({
|
||||||
|
siteUrl: "https://bd87c650dfad.ngrok.app"
|
||||||
|
});
|
||||||
|
|
||||||
await client.auth().universalAuth.login({
|
await client.auth().awsIamAuth.login({
|
||||||
clientId: "CLIENT_ID",
|
identityId: "8c7ed837-8246-4ec4-aa65-508cf1349529"
|
||||||
clientSecret: "CLIENT_SECRET"
|
});
|
||||||
});
|
|
||||||
|
|
||||||
const secrets = await client.secrets().listSecrets({
|
console.log(client.auth().getAccessToken());
|
||||||
environment: "dev",
|
|
||||||
workspaceId: "PROJECT_ID"
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log(secrets.secrets);
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user