@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
15 lines (14 loc) • 485 B
TypeScript
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;