icydns/src/utility/token.ts

6 lines
115 B
TypeScript

import crypto from 'crypto';
export function getToken() {
return crypto.randomBytes(256 / 8).toString('hex');
}