Skip to main content

apiKeyAuth() function

This provides a simple authorization mechanism based on a single pre-shared API key.

Signature:

export declare function apiKeyAuth({ apiKey }: { apiKey: string }): Router

Parameters

ParameterTypeDescription
{ apiKey }{ apiKey: string; }

Returns:

Router