summary refs log tree commit diff
path: root/src/util/secretUtils.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-31 20:29:26 +0200
committerRory& <root@rory.gay>2025-05-31 20:29:26 +0200
commitc03bc9d70058b2140da758e7754dc8301e512777 (patch)
tree353c3f6184cda12d6be572d619beca0ca49c2a6d /src/util/secretUtils.js
parentAdd plan and readme (diff)
downloadnodejs-final-assignment-c03bc9d70058b2140da758e7754dc8301e512777.tar.xz
Generate jwt secrets
Diffstat (limited to 'src/util/secretUtils.js')
-rw-r--r--src/util/secretUtils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/secretUtils.js b/src/util/secretUtils.js

index bbad8ca..92e1b1c 100644 --- a/src/util/secretUtils.js +++ b/src/util/secretUtils.js
@@ -1,6 +1,7 @@ import fs from 'node:fs/promises'; -export async function readSecret(path) { +export async function readSecret(name, path) { + console.log(`[SECRET] Reading secret "${name}" from path: ${path}`); if (!path) { throw new Error('Path to secret file is required'); }