Managing users on Better Auth instances
Permissions required:users.viewusers.approveusers.disable
Invites
Section titled “Invites”| Option | Detail |
|---|---|
| Role | Only administrators can invite administrators |
| Optional, locks the link to one address | |
| Valid for | Hours, default 72, maximum 720 |
Links are single use and stored as SHA-256 hashes. Invites list shows open, used, expired or withdrawn. Invitees choose their own password.
Resets
Section titled “Resets”Administrators can issue a password reset link for members from the user managment page.
If the sole administrator loses their password then you can use this command to reset their password:
docker compose exec app node server/cli/admin-reset-link.tsIt lists administrators. Run it with an administrator’s email to print a reset link valid for one hour. It doesn’t disable two-factor.
Administrators can also create a login directly.
Mail features
Section titled “Mail features”- Email verification and password reset
- Require 2fa for administrators Both need a mail server and a restart.