Chapter 5. $fh.host

$fh.host(callback);

Fetch the public host name of the MBaaS. Useful for configuring callback URLs in various authentication libraries.

5.1. Example

// Fetch our own host
$fh.host(function (err, host) {
  if (err) return console.error(err);

  console.log('Host: ', host);
});