UNPKG

feathers-authentication-management

Version:

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

10 lines (8 loc) 271 B
import { randomBytes as _randomBytes } from 'crypto'; export async function randomBytes ( len: number ): Promise<string> { return await new Promise((resolve, reject) => { _randomBytes(len, (err, buf) => err ? reject(err) : resolve(buf.toString('hex'))); }); }