Skip to content

Function: apiKeyAuth()

nekte-protocol


nekte-protocol / server/src / apiKeyAuth

Function: apiKeyAuth()

apiKeyAuth(keys): AuthHandler

Defined in: nekte-source/packages/server/src/auth.ts:49

API key authentication. Validates the X-API-Key header against one or more valid keys.

Parameters

keys

string | string[]

Returns

AuthHandler