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
| Parameter | Type |
|---|---|
args | { email: string; emailVerified: boolean; passwordHash: string | null; } |
args.email | string |
args.emailVerified | boolean |
args.passwordHash | string | null |
Returns
Promise<EmailAuthUser> | EmailAuthUser
findByEmail
findByEmail: (
Promise<EmailAuthUser|null> |EmailAuthUser|null
Defined in: auth-core/src/emailAuthTypes.ts:60
Parameters
| Parameter | Type |
|---|---|
email | string |
Returns
Promise<EmailAuthUser | null> | EmailAuthUser | null
update
update: (
args) =>Promise<EmailAuthUser> |EmailAuthUser
Defined in: auth-core/src/emailAuthTypes.ts:68
Parameters
| Parameter | Type |
|---|---|
args | { emailVerified?: boolean; id: string; passwordHash?: string; } |
args.emailVerified? | boolean |
args.id | string |
args.passwordHash? | string |
Returns
Promise<EmailAuthUser> | EmailAuthUser