Fix: Old docs

This commit is contained in:
Daniel Hougaard
2024-05-28 00:11:33 +02:00
parent 75927f711c
commit ae075df0ec
+7 -4
View File
@@ -46,16 +46,19 @@ Finally, create an index.js file containing the application code.
```js ```js
const express = require('express'); const express = require('express');
const { InfisicalClient, LogLevel } = require("@infisical/sdk"); const { InfisicalClient } = require("@infisical/sdk");
const app = express(); const app = express();
const PORT = 3000; const PORT = 3000;
const client = new InfisicalClient({ const client = new InfisicalClient({
clientId: "YOUR_CLIENT_ID", auth: {
clientSecret: "YOUR_CLIENT_SECRET", universalAuth: {
logLevel: LogLevel.Error clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
}
}
}); });
app.get("/", async (req, res) => { app.get("/", async (req, res) => {