EmailPasswordStore.ts overview
Drizzle EmailPasswordStore and PasswordResetUserStore, the only stores that read or write password_hash. createUser inserts the user row alone; promoted attributes go to their columns, and attributes with no mapped bag fail with AuthError. A mapping without passwordHash cannot build the layer.
Exports Grouped by Category
utils
layer
EmailPasswordStore backed by drizzle, on top of DrizzleDatabase.
Signature
declare const layer: (schema?: SchemaInput) => Layer.Layer<Auth.Email.EmailPasswordStore, never, DrizzleDatabase>
make
Build an EmailPasswordStore over the ambient DrizzleDatabase.
Signature
declare const make: (
schema?: SchemaInput
) => Effect.Effect<typeof Auth.Email.EmailPasswordStore.Service, never, DrizzleDatabase>
passwordResetUserLayer
PasswordResetUserStore backed by drizzle: the same setPasswordHash as layer’s store, for PasswordResetService.
Signature
declare const passwordResetUserLayer: (
schema?: SchemaInput
) => Layer.Layer<Auth.Password.PasswordResetUserStore, never, DrizzleDatabase>