Skip to content
Kamoorjdocs
Documentation

Two-factor sign-in and recovery

Verify an email or app code and restore access after replacing a phone.

On this page

Complete a sign-in challenge

After you enter your email and password, the system opens /two-factor-authentication when a second factor is required. The field label identifies the code source.

Method What to enter
Email The six-digit code sent to the registered mailbox for this sign-in attempt.
Authenticator app (TOTP) The current six-digit code for your institution account in the paired authenticator. The app refreshes this code itself.

Enter all six digits with no separators. Submitting is automatic after the sixth digit. Successful verification opens the dashboard. The “Remember me” choice carries over from the sign-in screen. Select it on a personal device.

If the code is rejected

  • On error the field is highlighted and clears after two seconds. For email, check the address and the latest message for this sign-in. For an authenticator, check the selected account, the device time and the current code.
  • The page shows a three-minute timer for the sign-in attempt. The app code rotates on its own timer. When the page timer ends, choose “Resend code” to start a new attempt. Use the new email for the email method or the current authenticator code for the app method.
  • Reloading, following a bookmark to the challenge or opening it in a new tab can take you back to sign-in. Start again with your email and password and enter the code in the same tab. Wait for any temporary request limit to expire.

Recover access after losing the authenticator

  1. Choose recovery on the app-code challenge. It opens the public /two-factor-recovery page. Enter the account email and request the link.
  2. The page displays the same acknowledgment for different addresses. This message alone does not confirm delivery. For an account configured with an authenticator, the recovery message goes to its registered mailbox.
  3. Open the complete link within 30 minutes. Check the displayed address and select “Confirm”. Simply opening the email or link does not change the account. Confirmation can be used once.
  4. Successful confirmation removes the old authenticator pairing, switches the second factor back to email and opens sign-in. Enter the account password followed by the code from the new email. To pair a new authenticator, use profile security settings and verify the new app’s code.

For example, an employee replaces their phone and still has access to work email. They confirm the recovery, sign in with their password and an email code, then pair the new phone. If you also lost mailbox access, contact your institution’s support team about restoring mail access. If you forgot the password, use password recovery separately. Keep passwords, codes, setup QR codes and confirmation links private when contacting support.

Access and requests

Challenge verification uses POST /api/auth/login-two-fa. Recovery requests use POST /api/auth/two-factor/recover and confirmation uses POST /api/auth/two-factor/recover/confirm. These public pages do not require module permissions or organizational scopes. They update the sign-in method for the account. Assigned roles and user access permissions are administered separately.

Implementation references

Updated Nov 27, 2026