Skip to content

Commit 240812f

Browse files
authored
Merge pull request #168 from osamhack2021/feature/backend/#167
Style: jwt must be provided ์—๋Ÿฌ๋ฉ”์„ธ์ง€ ๋ณ€๊ฒฝ #167
2 parents 03d6962 + 89c382e commit 240812f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

โ€Žbackend/routes/api/jwt.jsโ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ router.all('', (req, res, next) => {
1616

1717
next();
1818
} catch(err) {
19-
console.log(err);
2019
res.status(err.status).send(err.message);
2120
}
2221
});
@@ -31,7 +30,6 @@ router.all('/admin/*', (req, res, next) => {
3130

3231
next();
3332
} catch(err) {
34-
console.log(err);
3533
res.status(err.status).send(err.message);
3634
}
3735
});

โ€Žbackend/services/authService.jsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function decodeToken(token) {
2222

2323
return decoded;
2424
} catch (err) {
25-
throw new ForbiddenError(err.message);
25+
throw new ForbiddenError('๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.');
2626
}
2727
}
2828

0 commit comments

Comments
ย (0)