@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
8 lines (7 loc) • 334 B
TypeScript
export type TenantContext = {
tenantId: string;
};
export declare function getTenantContext(): TenantContext | undefined;
export declare function getTenantId(): string | undefined;
export declare function setTenantId(id: string | number): void;
export declare function runWithTenant<T>(tenantId: string | number, fn: () => T): T;