Skip to content

Two-factor and passkeys

Protect password sign-in with authenticator codes, and sign in with a passkey instead of a password.

Everyone manages their own sign-in in Settings › Sign-in and security. Nothing needs configuring on the server.

Two-factor authentication

With two-factor authentication on, signing in with a password also asks for a 6-digit code from an authenticator app such as 1Password, Bitwarden, Google Authenticator or Microsoft Authenticator.

  1. Choose Set up under Two-factor authentication.
  2. Scan the QR code with the app, or type the setup key into it.
  3. Enter the code the app shows and choose Turn on.
  4. Save the 10 recovery codes somewhere safe, such as a password manager. They're shown only once.

Each recovery code signs you in once in place of an app code; choose Use a recovery code on the code screen. The settings page shows how many are left. New recovery codes replaces them all, and Turn off removes two-factor authentication. Both ask for a current app code or a recovery code first.

Five wrong codes in a row lock the account for five minutes, the same as wrong passwords.

Two-factor codes protect password sign-in only:

  • Signing in with a passkey doesn't ask for a code, because a passkey already proves both who you are and that you have your device.
  • Signing in with single sign-on doesn't ask for a code. Turn on two-factor authentication at your identity provider instead.
  • Accounts without a password, such as ones created by single sign-on, don't see the option.
  • API tokens, including the one ShareX uses, are unaffected.

Passkeys

A passkey signs you in with your fingerprint, face, screen lock or a security key, without typing a password. Passkeys are kept by your device or password manager, and many sync between your devices.

  1. Choose Add a passkey under Passkeys.
  2. Give it a name you'll recognize, such as the device or password manager that keeps it.
  3. Confirm in your browser's prompt.

On the sign-in page, choose Use a passkey. Rename or remove passkeys from the menu next to each one. Removing a passkey in Tessra doesn't delete it from your device, so remove it there too.

Passkeys belong to the address Tessra runs at. They need HTTPS, except on localhost, and they stop working if Tessra__BaseUrl moves to a different domain. Add them again after a move.

Lost your phone or passkeys

Use a recovery code, or another passkey. Without either:

  • An administrator can reset your sign-in in Settings › Users. This removes your password, two-factor authentication, passkeys and single sign-on link, and gives you a new setup link.
  • On the server, admin reset-password <user name> prints a new password and turns off two-factor authentication. Passkeys are kept. See Troubleshooting.

Administrators can see who has two-factor authentication or passkeys from the 2FA and passkey badges in Settings › Users.