UNPKG

feathers-authentication-management

Version:

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

11 lines (7 loc) 251 B
const crypto = require('crypto'); module.exports = randomBytes; function randomBytes (len) { return new Promise((resolve, reject) => { crypto.randomBytes(len, (err, buf) => err ? reject(err) : resolve(buf.toString('hex'))); }); }