Skip to content

Commit ade76dd

Browse files
committed
fix linting error in auth controller
1 parent 5f66394 commit ade76dd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

server/controllers/auth.controller.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ function login(req, res, next) {
2020
// Ideally you'll fetch this from the db
2121
// Idea here was to show how jwt works with simplicity
2222
if (req.body.username === user.username && req.body.password === user.password) {
23-
const token = jwt.sign({
24-
username: user.username,
25-
expiresIn: 3600,
26-
}, config.jwtSecret);
23+
const token = jwt.sign(
24+
{
25+
username: user.username,
26+
expiresIn: 3600,
27+
},
28+
config.jwtSecret,
29+
);
2730
return res.json({
2831
token,
2932
username: user.username,

0 commit comments

Comments
 (0)