Type Alias: RequestRateLimit
RequestRateLimit =
object
Defined in: auth-core/src/emailAuthTypes.ts:183
Properties
cooldownSeconds?
optionalcooldownSeconds?:number
Defined in: auth-core/src/emailAuthTypes.ts:190
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:192
Requests allowed per address per window. Defaults to 10.
store
store:
RequestRateLimitStore
Defined in: auth-core/src/emailAuthTypes.ts:184
windowSeconds?
optionalwindowSeconds?:number
Defined in: auth-core/src/emailAuthTypes.ts:194
Window the ceiling applies over. Defaults to 24 hours.