We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5488b72 commit 1e68fffCopy full SHA for 1e68fff
src/config/index.js
@@ -1,6 +1,5 @@
1
const logger = require("loglevel");
2
const jwt = require("jsonwebtoken");
3
-
4
logger.enableAll();
5
6
const {
@@ -30,7 +29,7 @@ const baseConfig = {
30
29
jwt: {
31
sign: JWT_SECRET_SIGN,
32
payload: JWT_SECRET_PAYLOAD,
33
- token: jwt.sign(JWT_SECRET_PAYLOAD, JWT_SECRET_SIGN),
+ token: jwt.sign({ sub: JWT_SECRET_PAYLOAD }, JWT_SECRET_SIGN),
34
},
35
bcryptSaltRounds: parseInt(BCRYPT_SALT_ROUNDS),
36
logger: {
0 commit comments