Files
Gemini-Search/node_modules/passport/lib/errors/authenticationerror.js
Ammaar Reshi d6025af146 Initial commit
2025-01-04 14:06:53 +00:00

21 lines
438 B
JavaScript

/**
* `AuthenticationError` error.
*
* @constructor
* @api private
*/
function AuthenticationError(message, status) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.name = 'AuthenticationError';
this.message = message;
this.status = status || 401;
}
// Inherit from `Error`.
AuthenticationError.prototype.__proto__ = Error.prototype;
// Expose constructor.
module.exports = AuthenticationError;