'use strict';
/* jshint node: true */
/* jshint esversion: 6 */
const models = require('../../models');


module.exports = function(decoded, request, callback) {
  models.User.findOne({
    attributes: [
      'email', 'id', 'createdAt', 'updatedAt'
    ],
    where: {
      email: decoded.email
    }
  }).then(function(result) {
    if (result) {
      return callback(null, true, result.dataValues);
    }
    else {
      return callback(null, false);
    }
  });
};

@@ -217,16 +217,43 @@
 ', 'id',
+ 'first_name', 'last_name',
  'create

Add first/last name to the JWT #65