Sign in

Type: ProtectApiRequestOptions

Options for customizing how access tokens and client certificates are extracted from incoming requests.

Type Parameters

Type ParameterDescription
TType of the request

certificateResolver?

optional certificateResolver: ClientCertificateResolver<T>

Custom callback to resolve the PEM-encoded client certificate from the request.


tokenResolver?

optional tokenResolver: TokenResolver<T>

Custom callback to extract the access token from the request. When provided, overrides the default Authorization: Bearer header extraction.

© 2024 MonoCloud. All rights reserved.