Skip to content

Commit 89c382e

Browse files
authored
Style: jwt must be provided 에러메세지 변경 #167
1 parent 03d6962 commit 89c382e

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)