Skip to content

Commit 5f4de4f

Browse files
author
Víctor Martínez
committed
Merge branch 'dev' of github.com:Property-Search-Engine/client-facing-server into dev
2 parents d50eee6 + 1e68fff commit 5f4de4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/config/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const logger = require("loglevel");
22
const jwt = require("jsonwebtoken");
3-
43
logger.enableAll();
54

65
const {
@@ -30,7 +29,7 @@ const baseConfig = {
3029
jwt: {
3130
sign: JWT_SECRET_SIGN,
3231
payload: JWT_SECRET_PAYLOAD,
33-
token: jwt.sign(JWT_SECRET_PAYLOAD, JWT_SECRET_SIGN),
32+
token: jwt.sign({ sub: JWT_SECRET_PAYLOAD }, JWT_SECRET_SIGN),
3433
},
3534
bcryptSaltRounds: parseInt(BCRYPT_SALT_ROUNDS),
3635
logger: {

0 commit comments

Comments
 (0)