UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

19 lines (18 loc) 421 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Token = void 0; class Token { constructor(token) { this.token = token; if (!this.token) { throw new Error("Token cannot be empty"); } } toString() { throw new Error("Please use asString() instead"); } asString() { return this.token; } } exports.Token = Token;