oauth20-provider
Version:
OAuth 2.0 provider toolkit for nodeJS
16 lines (13 loc) • 395 B
JavaScript
var
util = require('util');
var oauth2 = function (code, msg, status, constructor) {
Error.call(this);
Error.captureStackTrace(this, constructor || this.constructor);
this.code = code;
this.message = msg;
this.status = status;
};
util.inherits(oauth2, Error);
oauth2.prototype.name = 'OAuth2AbstractError';
oauth2.prototype.logLevel = 'error';
module.exports = oauth2;