Async rule writing to a database on login, directly call callback?

Hi Dan.

I am not sure I understand your answer?

If I configure this code to run:

function (user, context, callback) {
  var moment = require('moment-timezone');

  var data = { // Some data};
  var accessToken = 'YOUR INTERCOM ACCESS TOKEN';

  request.post({
    url: 'https://api.intercom.io/users',
    headers: {
      'Authorization': 'Bearer ' + accessToken,
      'Accept': 'application/json'
    },
    json: data
  }).catch(err => request.post({ // Will this code execute!? })
  callback(null, user, context);
}

I’m unsure if the above code in the catch(err) block will execute?

The log streaming sounds like the solution to this specific problem, but we are also working on other rules at the moment :nerd_face:

Now that I have you attention, would you happen to know the answer for this some-what related question?