passport.use(new JwtStrategy(opts, function(jwt_payload, done) {
User.findUserById(jwt_payload.id)
.then(function(user) {
return done(null, user);
})
.catch(function(err){
return done(err, false);
})
}));