Two-factor authentication (also called 2-step verification) adds a second step when you sign in to Truffle. After your password, Google sign-in or login code, Truffle asks for a 6-digit code from an authenticator app on your phone. Anyone can turn it on for their own sign-in from Settings → Security.
How do I turn on two-factor authentication?
You need an authenticator app, such as Google Authenticator, 1Password or Authy.
Go to Settings and open Security.
Under Two-factor authentication, click Set up two-factor.
Open your authenticator app and add a new account. Scan the QR code that Truffle shows. If you can't scan it, type the key shown under Or enter the key into the app instead.
Enter the 6-digit code the app shows. The code changes every 30 seconds.
Save your recovery codes. Click Copy all, store them somewhere safe, then click I've saved these codes.
Two-factor is now on. Settings shows the date you turned it on and how many recovery codes you have left.
How does signing in work with two-factor?
Every way of signing in to Truffle asks for a second step: password, Google sign-in and login codes.
Sign in as usual.
When Truffle asks, enter the code from your authenticator app.
If you can't use your phone, click Use a recovery code and enter one of your saved codes.
How do recovery codes work?
Each recovery code works once. Settings shows Running low when you have 2 or fewer left. To get a new set, click Regenerate recovery codes in Settings → Security. Your current codes stop working as soon as you do.
To confirm, Truffle asks for a code from your authenticator app or a recovery code, and your current password if your account has one.
What if I lose my phone and my recovery codes?
Contact Truffle support from the chat in the app or at help.hiretruffle.com. Support can reset two-factor on your account after confirming it's you. A reset signs you out on every device, and you can set up two-factor again from Settings → Security.
How do I turn off two-factor authentication?
Go to Settings and open Security.
Click Turn off two-factor.
Enter a code from your authenticator app or a recovery code, and your current password if your account has one.
Sign-in no longer asks for a code. You can turn two-factor back on at any time.
