UNPKG

node-local-auth

Version:

Framework agnostic library for secure username/email/password authentication including registration and password management

10 lines (8 loc) 205 B
const Joi = require('joi'); const schemas = { email: Joi.string().email(), password: Joi.string(), username: Joi.string().max(50), token: Joi.string().max(50) }; module.exports = schemas;