const crypto = require('crypto'); const secretKey = 'Un946qcoLlFfxbvhEo_sd9E54E6NpRb4vMqqgrfg'; // IMPORTANT: your web Identity Verification secret key - keep it safe! const userIdentifier = current_user.id.toString(); // IMPORTANT: a UUID to identify your user const hash = crypto.createHmac('sha256', secretKey).update(userIdentifier).digest('hex');