code: function getDomainList(data) {
    var domains = [];
  
    _.each(data.emails, function(emailObject) {
      domains.push(emailObject.value.split('@')[1]);
    });
  
    return domains;
  }
docs: Allows restriction of oauth login to specified domains ie: The HRangle web portal only allows user with a rangle.io google account Get List of Domains from Email array //