basalt / auth-prisma/src / ApiKeySchemaOutdatedError
Class: ApiKeySchemaOutdatedError
Defined in: auth-prisma/src/index.ts:597
The database's auth_api_keys table is older than the store: a column the store reads or writes does not exist. @basaltkit/auth-prisma 1.5.0 added expiresAt; an app that regenerated its client without migrating (or, with schema-per-tenant, without migrating every tenant schema) would otherwise fail every API-key request with a raw Prisma P2022. The original error is cause.
Extends
Constructors
Constructor
> new ApiKeySchemaOutdatedError(cause): ApiKeySchemaOutdatedError
Defined in: auth-prisma/src/index.ts:598
Parameters
cause
unknown
Returns
ApiKeySchemaOutdatedError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
details?
> readonly optional details?: Record<string, unknown>
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).