Skip to content

Commit

Permalink
style(auth): fancy stuff in service
Browse files Browse the repository at this point in the history
  • Loading branch information
balthazar committed Nov 27, 2015
1 parent 5786757 commit 986ba38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/templates/server/auth(auth)/auth.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ var validateJwt = expressJwt({ secret: config.secrets.session });
exports.isAuthenticated = function () {

return compose()
.use(function (req, res, next) {
validateJwt(req, res, next);
})
.use(validateJwt)
.use(function (req, res, next) {
User.findById(req.user._id, function (err, user) {
if (err) { return next(err); }
Expand Down

0 comments on commit 986ba38

Please sign in to comment.