Type Alias: RequestRateLimit
RequestRateLimit =
object
Defined in: auth-core/src/emailAuthTypes.ts:177
Properties
cooldownSeconds?
optionalcooldownSeconds?:number
Defined in: auth-core/src/emailAuthTypes.ts:184
Minimum seconds between two requests for the same address and purpose. Defaults to 60 — long enough to stop a hammering loop, short enough that a user who mistypes their address is not stuck waiting.
maxPerWindow?
optionalmaxPerWindow?:number
Defined in: auth-core/src/emailAuthTypes.ts:186
Requests allowed per address per window. Defaults to 10.
store
store:
RequestRateLimitStore
Defined in: auth-core/src/emailAuthTypes.ts:178
windowSeconds?
optionalwindowSeconds?:number
Defined in: auth-core/src/emailAuthTypes.ts:188
Window the ceiling applies over. Defaults to 24 hours.