Skip to content

basalt / auth/src / AuthRoutesOptions

Interface: AuthRoutesOptions ​

Defined in: auth/src/routes.ts:24

Properties ​

password? ​

> optional password?: PasswordPolicy | ZodType<string, unknown, $ZodTypeInternals<string, unknown>>

Defined in: auth/src/routes.ts:30

A minimum length, or the schema itself. Default: min(8). Whatever the policy, passwords are capped at MAX_PASSWORD_LENGTH characters before it runs, so an oversized body never reaches the password hasher.


rateLimit? ​

> optional rateLimit?: false | { limit: number; windowMs: number; }

Defined in: auth/src/routes.ts:38

Per-route rate limit (meta.rateLimit, enforced per client ip by securityPlugin when its rate limiter is on) for the unauthenticated routes that hash, mail or guess: register, login, verification requests and password forgot/reset. Default DEFAULT_AUTH_RATE_LIMIT; pass false to omit it.

Released under the MIT License.