Skip to content

Commit e6b9a2d

Browse files
author
Víctor Martínez
committed
hotfix: config token fix
1 parent f568885 commit e6b9a2d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const baseConfig = {
3030
jwt: {
3131
sign: JWT_SECRET_SIGN,
3232
payload: JWT_SECRET_PAYLOAD,
33-
token: jwt.sign(JWT_SECRET_PAYLOAD, JWT_SECRET_SIGN),
33+
token: jwt.sign({sub: JWT_SECRET_PAYLOAD}, JWT_SECRET_SIGN),
3434
},
3535
bcryptSaltRounds: parseInt(BCRYPT_SALT_ROUNDS),
3636
logger: {

src/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const morgan = require("morgan");
33
const { json } = require("body-parser");
44
const cors = require("cors");
55
const helmet = require("helmet");
6-
const validateJWT = require("./middleware/jwt-middleware")
76

87
const errorMiddleware = require("./middleware/error-middleware");
98
const userRouter = require("./routes/user-routes")

0 commit comments

Comments
 (0)