Skip to content

Commit

Permalink
Add dotenv package
Browse files Browse the repository at this point in the history
  • Loading branch information
luucvanderzee committed Aug 5, 2024
1 parent f683f8d commit 07d19cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"version": "0.0.1",
"private": true,
"scripts": {
"start": "nodemon ./bin/www --env-file=env_files/back-secret.env"
"start": "nodemon ./bin/www"
},
"dependencies": {
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
"dotenv": "^16.4.5",
"ejs": "~2.6.1",
"express": "~4.16.1",
"http-errors": "~1.6.3",
Expand All @@ -16,4 +17,4 @@
"nodemon": "^3.1.4",
"uuid": "^10.0.0"
}
}
}
1 change: 1 addition & 0 deletions utils/createIdToken.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const jose = require("jose");
const { v4: uuidv4 } = require("uuid");
require('dotenv').config({ path: './env_files/back-secret.env' });

const secret = new TextEncoder().encode(process.env.FAKE_SSO_JWT_SECRET);

Expand Down

0 comments on commit 07d19cd

Please sign in to comment.