Skip to content

Commit

Permalink
Style: jwt must be provided 에러메세지 변경 #167
Browse files Browse the repository at this point in the history
  • Loading branch information
phjppo0918 authored Oct 9, 2021
1 parent 03d6962 commit 89c382e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions backend/routes/api/jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ router.all('', (req, res, next) => {

next();
} catch(err) {
console.log(err);
res.status(err.status).send(err.message);
}
});
Expand All @@ -31,7 +30,6 @@ router.all('/admin/*', (req, res, next) => {

next();
} catch(err) {
console.log(err);
res.status(err.status).send(err.message);
}
});
Expand Down
2 changes: 1 addition & 1 deletion backend/services/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function decodeToken(token) {

return decoded;
} catch (err) {
throw new ForbiddenError(err.message);
throw new ForbiddenError('로그인이 필요한 서비스입니다.');
}
}

Expand Down

0 comments on commit 89c382e

Please sign in to comment.