Turn on two-factor authentication
Before you begin
- You need
- A verified email address
- An authenticator app, such as one that reads a QR code and shows 6-digit codes
Two-factor authentication asks for a 6-digit code from an authenticator app each time you sign in, after your password or your GitHub or Google sign-in has been accepted. Someone who learns your password still cannot get in.
Turn it on
Section titled “Turn it on”-
Open Settings → Profile.
-
Under Two-factor authentication, select Turn on. If the card says Confirm your email address first, select Confirm it and confirm your address before you go on.
-
Enter your Current password, then select Continue. An account created with GitHub or Google has no password to enter, and works if you signed in within the last ten minutes.
-
Scan the QR code with your authenticator app. To type it in instead, use the key shown under the code, or select Copy key. On a phone, select Open in authenticator app.
-
Enter the 6-digit code the app shows, then select Turn on.
-
Save the ten recovery codes with Copy or Download, then select I saved them.
The card then shows On, the date, and 10 of 10 recovery codes left. MockHub emails you that it was turned on.
Sign in with it
Section titled “Sign in with it”-
Sign in with your email and password, or with GitHub or Google.
-
On Two-factor authentication, enter the 6-digit code from your authenticator app.
-
Leave Remember this device for 30 days selected to skip the code on this browser, or clear it.
-
Select Verify.
A code works once, so wait for the app to show the next one if you used it a moment ago. After several wrong codes for the same sign-in, you start again from your password or provider.
Remember this device
Section titled “Remember this device”With Remember this device for 30 days selected, the browser skips the code the next time you sign in, for 30 days. You still enter your password, or sign in with GitHub or Google, every time.
To see or forget the browsers MockHub remembers:
-
Open Settings → Profile.
-
Under Two-factor authentication, find Remembered devices. This browser is marked This device.
-
Select Forget beside a browser, or Forget all. Its next sign-in asks for a code.
A remembered browser is forgotten when:
- the 30 days pass. Using it does not extend them;
- you change or reset your password, change your email address, or turn two-factor authentication off;
- an administrator resets your two-factor authentication;
- you forget it, or clear the browser’s site data.
Signing out does not forget it, and neither does Sign out other sessions. Do not select the box on a computer you share.
Sign in with a recovery code
Section titled “Sign in with a recovery code”Select Use a recovery code, enter one of your ten codes, and select Verify. Each recovery code works once. MockHub emails you each time one is used, with how many are left.
Replace your recovery codes
Section titled “Replace your recovery codes”-
Open Settings → Profile.
-
Under Two-factor authentication, select Replace recovery codes.
-
Enter a current code, or select Use a recovery code and enter one.
-
Select Replace codes, save the new codes, then select I saved them.
The old codes stop working. The card warns you once three or fewer are left.
Turn it off
Section titled “Turn it off”-
Open Settings → Profile.
-
Under Two-factor authentication, select Turn off.
-
Enter a current code, or a recovery code, then select Turn off.
MockHub emails you that it was turned off.
If you lose your authenticator and your recovery codes
Section titled “If you lose your authenticator and your recovery codes”You cannot turn it off without a code, and MockHub cannot see your codes. Write to support@mockhub.io from the address on the account. After MockHub has checked that the account is yours, it resets two-factor authentication, signs the account out everywhere and emails you. You then sign in with your password or provider alone and can turn it on again.
Result
Section titled “Result”Where you are signed in marks each sign-in that passed a code with Two-factor, and one that a remembered browser let in with Remembered device. Every other new sign-in to the account asks for a code.
Turning it off is refused while a workspace you belong to requires it. Leave that workspace, or ask an Owner to stop requiring it first.
Limits
Section titled “Limits”- It is optional unless a workspace requires it; see Require two-factor authentication. Owners and Admins can see whether each member has it on under Settings → Members. Viewers and Editors cannot see this status.
- An authenticator app is the only second factor. There are no SMS codes, no security keys and no passkeys.
- A remembered device lasts 30 days and is kept per browser and per account. An account remembers up to ten; the oldest is forgotten first.
- Turning it on needs a verified email address, and a demo account cannot turn it on.
- Personal tokens, machine tokens and AI assistants sign in with their own credential and are never asked for a code. In a workspace that requires it, a personal token or AI assistant works only while its owner has two-factor authentication on. Machine tokens are unaffected.
- A password reset does not turn it off, and neither does changing your password.
- Signing in with GitHub or Google asks for a code too: it protects the MockHub account, whichever way in you use.
- Keeping a demo project in an account that has it asks for a code at Keep this work.
- After too many wrong codes for one account in 15 minutes, MockHub refuses further codes for a while, even right ones, and says how long to wait.
- Wrong entries in Current password when turning it on count with those on Profile: after several for one account, MockHub refuses further attempts for a while and says how long to wait.