mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 05:27:48 +00:00
Fix: Old docs
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user