Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / extractor / validateExtractorOptions

Function: validateExtractorOptions()

validateExtractorOptions(options?): void

Defined in: extractor.js:22

Validate options shared by extractClientCertificate and the middleware constructor. Throws on misconfiguration (unknown preset, unknown encoding, certificateHeader without an encoding source, chainHeader without a leaf header source, or only one of verifyHeader/verifyValue). Omitted or undefined options are treated as the empty object; explicit null will throw a TypeError.

Parameters

options?

ExtractorOptions = {}

Returns

void

Throws

when options are malformed

Released under the MIT License.