ApiKeyStore.ts overview

Drizzle ApiKeyStore (a dialect’s Tables, or a table mapped with defineApiKeyTable). It stores only the key’s digest; NULL fields read back absent and instants as epoch milliseconds. recordUse is one guarded UPDATE, which on MySQL needs mysql2’s matched-rows count.


Exports Grouped by Category


utils

layer

ApiKeyStore backed by drizzle, on top of DrizzleDatabase.

Signature

declare const layer: (tables?: ApiKeyTableInput) => Layer.Layer<Auth.ApiKey.ApiKeyStore, never, DrizzleDatabase>

Source

make

Build an ApiKeyStore over the ambient DrizzleDatabase.

Signature

declare const make: (
  tables?: ApiKeyTableInput
) => Effect.Effect<typeof Auth.ApiKey.ApiKeyStore.Service, never, DrizzleDatabase>

Source


This site uses Just the Docs, a documentation theme for Jekyll.