UNPKG

@sap/xssec

Version:

XS Advanced Container Security API for node.js

22 lines (17 loc) 665 B
const TokenValidationError = require("./TokenValidationError"); class InvalidIssuerError extends TokenValidationError { /** @type {Error} Error encountered during parsing */ #parseError; constructor(token, parseError, message = `Issuer ${token.issuer} was not a valid domain or URL for use with https. Protocol schemes other than https:// are not supported.`) { super(token, message); this.name = "InvalidIssuerError"; this.#parseError = parseError; } get parseError() { return this.#parseError; } set parseError(value) { this.#parseError = value; } } module.exports = InvalidIssuerError;