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