remove jwtSecret from settings
This commit is contained in:
1 parent
6418efde2a
commit
6268b2573c
7 files changed
+47
-34
No files matched your search
@@ -36,7 +36,6 @@ const verifyJWT = (req, res, next) => {
|
||||
const parsedToken = token.slice(TOKEN_PREFIX.length, token.length);
|
||||
// Verify the token's authenticity
|
||||
const { jwtSecret } = req.settingsService.getSettings();
|
||||
|
||||
jwt.verify(parsedToken, jwtSecret, (err, decoded) => {
|
||||
if (err) {
|
||||
return res
|
||||
|
||||
Reference in new issue
Block a user