huridocs/uwazi

View on GitHub
app/api/users/generateUnlockCode.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import crypto from 'crypto';

export const generateUnlockCode = () => crypto.randomBytes(32).toString('hex');