Skip to content

basalt / auth/src / apiKeysPlugin

Function: apiKeysPlugin() ​

> apiKeysPlugin(options?): BasaltPlugin<unknown>

Defined in: auth/src/apikeys-plugin.ts:110

Programmatic access via API keys. Registers an enricher that authenticates mk_-prefixed bearers (or the configured header) and a guard that enforces meta.scopes on routes. Pair with apiKeyRoutes for CRUD endpoints.

Parameters ​

options? ​

ApiKeysPluginOptions = {}

Returns ​

BasaltPlugin<unknown>

Released under the MIT License.