system-prompts-and-models-o.../unified-ai-platform/node_modules/jsonwebtoken/lib/JsonWebTokenError.js
dopeuni444 ae726301f8 KI
KJ
2025-08-06 11:08:49 +04:00

15 lines
428 B
JavaScript

var JsonWebTokenError = function (message, error) {
Error.call(this, message);
if(Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = 'JsonWebTokenError';
this.message = message;
if (error) this.inner = error;
};
JsonWebTokenError.prototype = Object.create(Error.prototype);
JsonWebTokenError.prototype.constructor = JsonWebTokenError;
module.exports = JsonWebTokenError;