Accounts and teams
Access
Choose who can sign up, and change it at runtime from the admin console without a deploy. Existing users can always sign in, and codes are consumed atomically.
What you get
- Open, invite-only or waitlist sign-up modes
- Invite codes with max uses, expiry and revoke
- Waitlist approval that generates a single-use code and emails the link
- A waitlist form on the landing page in waitlist mode
- Referral links: a ?ref=CODE becomes a 30-day cookie, and both sides get credits
Turn it on
- authConfig.auth.signUpMode and referralConfig in config.ts
- Override the mode at /admin/access
Where it lives
lib/access.tslib/settings.tsproxy.ts