auth/signup_routes.ts

Signup route spec for account creation.

Public endpoint that creates an account. When open_signup is disabled (default), a matching unclaimed invite is required. When enabled, anyone can sign up without an invite. Follows the auth/bootstrap_routes.ts pattern.

Declarations
#

4 declarations

view source

create_signup_route_specs
#

SignupInput
#

auth/signup_routes.ts view source

ZodObject<{ username: ZodString; password: ZodString; email: ZodOptional<ZodEmail>; }, $strict>

Input for POST /signup. email is optional and must match any referenced invite.

SignupOutput
#

SignupRouteOptions
#

auth/signup_routes.ts view source

SignupRouteOptions

Per-factory configuration for signup route specs.

inheritance

signup_account_rate_limiter

Rate limiter for signup attempts, keyed by submitted username. Pass null to disable.

type RateLimiter | null

app_settings

Mutable ref to app settings — when open_signup is true, invite check is skipped.

Depends on
#