From 853e3244d73d4beb51cfe9784f32295f72f578e9 Mon Sep 17 00:00:00 2001 From: Shengwei Peng Date: Thu, 29 Feb 2024 20:05:17 -0500 Subject: [PATCH] Add user email info to JWT token --- src/controllers/logincontroller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/logincontroller.js b/src/controllers/logincontroller.js index a2765e1c5..809c5892f 100644 --- a/src/controllers/logincontroller.js +++ b/src/controllers/logincontroller.js @@ -52,6 +52,7 @@ const logincontroller = function () { access: { canAccessBMPortal: false, }, + email: user.email, expiryTimestamp: moment().add(config.TOKEN.Lifetime, config.TOKEN.Units), };