Skip to main content

EmailPasswordParameters

@webda/auth


Class: EmailPasswordParameters

Defined in: packages/auth/src/email/emailpassword.service.ts:31

EmailPasswordProvider parameters

Extends​

  • ServiceParameters

Constructors​

Constructor​

new EmailPasswordParameters(): EmailPasswordParameters

Returns​

EmailPasswordParameters

Inherited from​

ServiceParameters.constructor

Properties​

allowedEmailDomains?​

optional allowedEmailDomains?: string[]

Defined in: packages/auth/src/email/emailpassword.service.ts:75

Only these email domains may use this provider (see ProviderEmailPolicy)


mailer​

mailer: string

Defined in: packages/auth/src/email/emailpassword.service.ts:36

Mailer service name

Default​

"Mailer"

password​

password: object

Defined in: packages/auth/src/email/emailpassword.service.ts:45

Password rules

policy​

policy: string

Default​
".{8,}"

verifier?​

optional verifier?: string

Default​

{ "policy": ".{8,}" }

redirects​

redirects: object

Defined in: packages/auth/src/email/emailpassword.service.ts:68

Browser redirects for emailed links (no defaults: init() refuses a missing required one). failure and recover are always required, verified and register unless verification is "none". recover receives the recovery link as ?token=... (the page then calls Auth.Password.Recover). confirm (default failure) receives a verification link opened without the matching session, with ?reason=LOGIN_REQUIRED&token=...: log in then call Auth.Email.Verify with the token

confirm?​

optional confirm?: string

failure?​

optional failure?: string

recover?​

optional recover?: string

register?​

optional register?: string

verified?​

optional verified?: string


throttle​

throttle: object

Defined in: packages/auth/src/email/emailpassword.service.ts:53

Throttling

failedBeforeDelay​

failedBeforeDelay: number

Default​
3

lockout​

lockout: number

Default​
900000

resendDelay​

resendDelay: number

Default​
14400000

Default​

{ "resendDelay": 14400000, "failedBeforeDelay": 3, "lockout": 900000 }

trustEmailVerification?​

optional trustEmailVerification?: boolean | string[]

Defined in: packages/auth/src/email/emailpassword.service.ts:77

Whether the verification of the email is believed (see ProviderEmailPolicy)


type​

type: string

Defined in: packages/core/lib/services/serviceparameters.d.ts:9

Type of the service

Inherited from​

ServiceParameters.type


url​

url: string

Defined in: packages/auth/src/email/emailpassword.service.ts:73

Base url for emailed links

Default​

"/auth/email"

verification​

verification: VerificationMode

Defined in: packages/auth/src/email/emailpassword.service.ts:41

Verification mode

Default​

"before"

Methods​

load()​

load(params?): this

Defined in: packages/auth/src/email/emailpassword.service.ts:83

Parameters​

params?​

any = {}

raw parameters

Returns​

this

this

Overrides​

ServiceParameters.load


update()​

update(params, delta): this

Defined in: packages/core/lib/application/parameters.d.ts:21

Update parameters and call watchers if a parameter was changed

Parameters​

params​

any

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

ServiceParameters.update


with()​

with(callback): this

Defined in: packages/core/lib/application/parameters.d.ts:27

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

ServiceParameters.with