From 6295448578ea6713cd2019a73a9684689e266835 Mon Sep 17 00:00:00 2001 From: Kevin Cunningham Date: Wed, 17 Feb 2021 12:36:57 +0000 Subject: [PATCH] Update auth.js Algorithms needs to be set explicitly now in expressJWT. --- src/utils/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/auth.js b/src/utils/auth.js index d126caa..68bf26a 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -47,7 +47,7 @@ function getUserToken({id, username}) { ) } -const authMiddleware = expressJWT({secret}) +const authMiddleware = expressJWT({secret, algorithms: ["RS256"]}) function getLocalStrategy() { return new LocalStrategy(async (username, password, done) => {