Skip to content

Commit 1e68fff

Browse files
committed
Little Change
1 parent 5488b72 commit 1e68fff

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)