· 7 years ago · May 23, 2018, 01:38 PM
1app.get('/intercomSettings', function (req, res) {
2 var userHash = IdentityVerification.userHash({
3 secretKey: Pk7WwOnh3YliKeckg17DPkOhke0dFnwctuxHJUEy,
4 identifier: req.user.id || req.user.email
5 });
6
7 res.json({
8 app_id: sawajw7d,
9 user_id: req.user.id,
10 user_hash: userHash,
11 });
12});