Skip to main content

Type Alias: EmailAuthUserStore

EmailAuthUserStore = object

Defined in: auth-core/src/emailAuthTypes.ts:59

App-provided user persistence. The engine owns the flow mechanics; the app owns the table (Sequelize via @ttoss/postgresdb, DynamoDB, …).

findByEmail receives an already-normalized address, so the app must store and query addresses in the same normalized form.

Properties

create

create: (args) => Promise<EmailAuthUser> | EmailAuthUser

Defined in: auth-core/src/emailAuthTypes.ts:63

Parameters

ParameterType
args{ email: string; emailVerified: boolean; passwordHash: string | null; }
args.emailstring
args.emailVerifiedboolean
args.passwordHashstring | null

Returns

Promise<EmailAuthUser> | EmailAuthUser


findByEmail

findByEmail: (email) => Promise<EmailAuthUser | null> | EmailAuthUser | null

Defined in: auth-core/src/emailAuthTypes.ts:60

Parameters

ParameterType
emailstring

Returns

Promise<EmailAuthUser | null> | EmailAuthUser | null


update

update: (args) => Promise<EmailAuthUser> | EmailAuthUser

Defined in: auth-core/src/emailAuthTypes.ts:68

Parameters

ParameterType
args{ emailVerified?: boolean; id: string; passwordHash?: string; }
args.emailVerified?boolean
args.idstring
args.passwordHash?string

Returns

Promise<EmailAuthUser> | EmailAuthUser