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​

Parameter

Type

Description

{ apiKey }

{ apiKey: string; }

**Returns:**

Router