@custonomy/passport-custonomy
Version:
Passport strategy for authenticating with Custonomy using OpenID 2.0. This module lets you authenticate using Custonomy in your Node.js applications. By plugging into Passport, Custonomy authentication can be easily and unobtrusively integrated into any a
24 lines (20 loc) • 475 B
JavaScript
/**
* `CustonomyAPIError` error.
*
*
* @constructor
* @param {string} [message]
* @param {number} [code]
* @access public
*/
function CustonomyAPIError(message, code) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.name = 'CustonomyAPIError';
this.message = message;
this.code = code;
}
// Inherit from `Error`.
CustonomyAPIError.prototype.__proto__ = Error.prototype;
// Expose constructor.
module.exports = CustonomyAPIError;