src/authentication.js
/*
    Make HoD request to fetch unbound token
 */
Make HoD request to fetch unbound token
Make HoD request to fetch unbound token
function fetchUnboundToken(callback) {
    this.hodRequestLib.authenticateUnboundHmac(this.apiKey, function(err, response) {
        if(err) return callback(err, response);
        return callback(null, response.result.token);
    });
}
function fetchUnboundToken ( callback ) { this . hodRequestLib . authenticateUnboundHmac ( this . apiKey , function ( err , response ) { if ( err ) return callback ( err , response ) ; return callback ( null , response . result . token ) ; } ) ; }
Make HoD request to fetch unbound token
Make HoD request to fetch unbound token