# Account security

Sign-in methods, two-factor authentication, passkeys and sessions.

Manage your account in **Account settings**: **Profile**, **Security**, **Notifications**, **Sessions**
and **Activity**.

## Sign-in methods

- **Email and password.** Changing your password needs the current one, and can sign out every other
  session.
- **GitHub or Google.** Connect or disconnect them in **Security**. An account created with GitHub or
  Google has no password until you set one; you can't remove your last way to sign in.
- **Passkeys.** Sign in with Touch ID, Windows Hello, a phone or a security key — no password needed.

## Two-factor authentication

Turn on two-factor authentication in **Security** with an **authenticator app**, a **passkey**, or both.
When you set it up you get ten single-use **recovery codes** — store them somewhere safe; they get you in
if you lose your device. You can generate new ones at any time.

Organizations can [require two-factor authentication](organization-settings#security) for every member.

## Sessions and activity

**Sessions** lists every device signed in to your account. Sign out any of them, or all others at once.
**Activity** is your security log: sign-ins, failed attempts, and changes to your password, email, 2FA,
passkeys and tokens.

Docsheaf emails you when someone signs in from a new device, and when your password, email, two-factor
settings, passkeys or connected accounts change. These emails can't be turned off.

## Failed sign-ins

After five failed attempts from one network, that network waits before it can try again — you can still
sign in from elsewhere, so nobody can lock you out by knowing your email.

## Delete your account

**Profile → Delete account** removes your account and the organizations where you're the only member.
If you're the only admin of an organization with other members, make someone else an admin first.
