You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

authentication.js 366B

1234567891011121314
  1. const Schwifty = require('@hapipal/schwifty')
  2. const Joi = require('joi')
  3. module.exports = class userAuth extends Schwifty.Model {
  4. static get tableName() {
  5. return 'authentication'
  6. }
  7. static get joiSchema() {
  8. return Joi.object({
  9. user_email: Joi.string().required(),
  10. token: Joi.string().required()
  11. })
  12. }
  13. }