UNPKG

double-submit-cookies

Version:
15 lines (12 loc) 422 B
function InvalidTokenError (code, error) { Error.call(this, error.message); Error.captureStackTrace(this, this.constructor); this.name = "InvalidTokenError"; this.message = error.message; this.code = code; this.status = 400; this.inner = error; } InvalidTokenError.prototype = Object.create(Error.prototype); InvalidTokenError.prototype.constructor = InvalidTokenError; module.exports = InvalidTokenError;