Interface IApiKeyOptions

Options for 'apiKey()' function.

interface IApiKeyOptions {
    onValidationFailed?: Nilable<HttpRequestHandler>;
    validator: ApiKeyValidator;
}

Properties

onValidationFailed?: Nilable<HttpRequestHandler>

The action, that is invoked, when validation failed.

validator: ApiKeyValidator

The function, that validates the request.

Generated using TypeDoc