From 7429c4a1eee336d73c563714a434059cdd4ecfdc Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Mon, 1 Jan 2024 11:57:43 +1100 Subject: [PATCH] HOTFIX: how long was this broken? --- package-lock.json | 4 ++-- package.json | 2 +- server/auth/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8c4c47e..a1bb037 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-server", - "version": "1.8.5", + "version": "1.8.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "auth-server", - "version": "1.8.5", + "version": "1.8.6", "license": "ISC", "dependencies": { "bcryptjs": "^2.4.3", diff --git a/package.json b/package.json index 5639c44..f5dc037 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth-server", - "version": "1.8.5", + "version": "1.8.6", "description": "An API centric auth server. Uses Sequelize and mariaDB by default.", "main": "server/server.js", "scripts": { diff --git a/server/auth/index.js b/server/auth/index.js index cfb9bc2..1cc50ed 100644 --- a/server/auth/index.js +++ b/server/auth/index.js @@ -27,7 +27,7 @@ router.use(tokenDecode); router.use(async (req, res, next) => { const record = await accounts.findOne({ where: { - email: req.user.email || '' + email: req.user?.email || '' } });