crypto.randomBytes(20).toString('hex'); code example
Example: js crpyto generate safe token
const crypto = require('crypto');
const token = crypto.randomBytes(48).toString('hex');
const crypto = require('crypto');
const token = crypto.randomBytes(48).toString('hex');