Callback to validate the API key and return a principal.
Return null if the key is invalid.
(key: string) => Promise<IPrincipal | null>
Callback to validate the API key and return a principal.
Return null if the key is invalid.
(key: string) => Promise<IPrincipal | null>
import { type ApiKeyOptions } from "auth-plugin/src/index.ts";