UNPKG

@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.

15 lines (14 loc) 485 B
import { HTTPAuthScheme } from "../../helpers/isHTTPAuthScheme"; import { Context } from "../Context"; export type APIAuthType = { type: "http" | "apiKey"; scheme?: HTTPAuthScheme; in?: "header" | "cookie"; name?: string; bearerFormat?: string; }; /** * Get the authentication type of the API request. * Returns undefined if the authentication type could not be determined. */ export declare function getApiAuthType(context: Context): APIAuthType[] | undefined;