From 7ded33aaf38007cc1a25462204ea6ff024a44621 Mon Sep 17 00:00:00 2001 From: Birm Date: Mon, 15 Jan 2024 20:13:23 -0500 Subject: [PATCH] wrong var --- handlers/customLogin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/customLogin.js b/handlers/customLogin.js index d19dd5a..c0f7d6d 100644 --- a/handlers/customLogin.js +++ b/handlers/customLogin.js @@ -15,7 +15,7 @@ function customLogin(usernameField, usertypeField) { token.userType = usertype || "Participant"; // generate token with this info // return the token - signedToken = jwt.sign(data, "precision-fda-not-secure-token", { + signedToken = jwt.sign(token, "precision-fda-not-secure-token", { algorithm: 'RS256', expiresIn: EXPIRY, });