TokenStore.ts overview

Drizzle EmailVerificationStore and PasswordResetStore over one tokens table, told apart by purpose (a dialect’s Tables, or a table mapped with defineTokenTable). Each store reads and deletes only its own purpose. Tokens are the digests core computes, and consume hands a row to one consumer only.


Exports Grouped by Category


utils

emailVerificationLayer

EmailVerificationStore backed by drizzle, on top of DrizzleDatabase.

Signature

declare const emailVerificationLayer: (
  tables?: TokenTableInput
) => Layer.Layer<Auth.Email.EmailVerificationStore, never, DrizzleDatabase>

Source

layer

Both token stores, over one tokens table.

Signature

declare const layer: (
  tables?: TokenTableInput
) => Layer.Layer<Auth.Email.EmailVerificationStore | Auth.Password.PasswordResetStore, never, DrizzleDatabase>

Source

makeEmailVerificationStore

Build an EmailVerificationStore over the ambient DrizzleDatabase.

Signature

declare const makeEmailVerificationStore: (
  tables?: TokenTableInput
) => Effect.Effect<typeof Auth.Email.EmailVerificationStore.Service, never, DrizzleDatabase>

Source

makePasswordResetStore

Build a PasswordResetStore over the ambient DrizzleDatabase.

Signature

declare const makePasswordResetStore: (
  tables?: TokenTableInput
) => Effect.Effect<typeof Auth.Password.PasswordResetStore.Service, never, DrizzleDatabase>

Source

passwordResetLayer

PasswordResetStore backed by drizzle, on top of DrizzleDatabase.

Signature

declare const passwordResetLayer: (
  tables?: TokenTableInput
) => Layer.Layer<Auth.Password.PasswordResetStore, never, DrizzleDatabase>

Source


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