index.js 469 B

12345678910111213141516
  1. const Joi = require('joi')
  2. const loginModel = require('../../models/login')
  3. const hapiLogin = require('hapi-login')
  4. const init = async server => {
  5. // await server.auth.strategy('jwt', 'jwt', {
  6. // key: process.env.JWT_SECRET || 'dev', // Never Share your secret key
  7. // validate: controllers.auth.validate,
  8. // verifyOptions: { algorithms: [ 'HS256' ] } // pick a strong algorithm
  9. // })
  10. }
  11. module.exports = {
  12. init,
  13. login: require('./login')
  14. }