Skip to content

Managing users on Better Auth instances

Permissions required:users.viewusers.approveusers.disable

Option Detail
Role Only administrators can invite administrators
Email 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.

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.ts

It 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.

  • Email verification and password reset
  • Require 2fa for administrators Both need a mail server and a restart.