From e93b9bb3c0b3588ed0ad59b3568b38ad4cb9ec8b Mon Sep 17 00:00:00 2001 From: DanielWTE Date: Mon, 8 Apr 2024 17:12:09 +0200 Subject: [PATCH 1/2] Missing 'key' at the end of the process.env variable --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 0cdafc5..353cc6c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -157,7 +157,7 @@ app.use(morganMiddleware); async function auth(req: any, res:any, next: any) { const token = req.body.token; if(token) { - jwt.verify(token, process.env.JWT_SECRET as string, (err: any, decoded: any) => { + jwt.verify(token, process.env.JWT_SECRET_KEY as string, (err: any, decoded: any) => { if(err) { res.status(403).json({ error: 'Request got rejected, this ressource is protected.' }); } else { From a6469846ec79a662ca432442266e36c97a775c68 Mon Sep 17 00:00:00 2001 From: DanielWTE Date: Mon, 8 Apr 2024 17:12:12 +0200 Subject: [PATCH 2/2] 1.2.20 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a52d118..b4cb421 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "solun-api", - "version": "1.2.19", + "version": "1.2.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "solun-api", - "version": "1.2.19", + "version": "1.2.20", "license": "ISC", "dependencies": { "@openpgp/web-stream-tools": "^0.0.13", diff --git a/package.json b/package.json index ba3618c..cb014e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "solun-api", - "version": "1.2.19", + "version": "1.2.20", "description": "Exists only to handle any requests from the Solun applications.", "main": "index.js", "scripts": {