remove jwtSecret from settings

This commit is contained in:
Alex Holliday committed 2024-09-30 11:14:53 +08:00
1 parent 6418efde2a
commit 6268b2573c
7 files changed
+47 -34

No files matched your search

-1
View File
@@ -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