UNPKG

feathers-authentication-management

Version:

Adds sign up verification, forgotten password reset, and other capabilities to local feathers-authentication

13 lines (9 loc) 332 B
const errors = require('@feathersjs/errors'); module.exports = ensureValuesAreStrings; function ensureValuesAreStrings (...rest) { if (!rest.every(str => typeof str === 'string')) { throw new errors.BadRequest('Expected string value. (authLocalMgnt)', { errors: { $className: 'badParams' } } ); } }