createAPIAuthScheme

View Source

Summary

Creates an auth scheme that reads API keys from a request header.

Signature

function createAPIAuthScheme<identity>(
  options: APIAuthSchemeOptions<identity>,
): AuthScheme<identity>;

Params

options

Header parsing and key verification options.

Returns

An auth scheme for use with auth().