Warning
Disclaimer: This browser extension codebase was generated with AI (Gemini 3.5 Flash). Users are ultimately and solely responsible for importing and executing this extension within their own browsers. By loading this software, you accept all associated security risks. This extension was tested and verified as fully functional on Google Chrome and Mozilla Firefox as of May 2026.
AutoMFA is a local-only browser extension designed to automate and simplify your Microsoft 2FA (Two-Factor Authentication) login flow.
Instead of opening an authenticator app on your phone every time you log in, AutoMFA securely generates your verification codes offline inside your browser. It includes a smart background automation script that instantly detects Microsoft authentication prompts, chooses the verification code method, and autofills the code on your behalf in a matter of seconds.
- Download or clone this repository to a folder on your computer.
- Open Google Chrome and navigate to
chrome://extensions/. - In the top-right corner, toggle the Developer mode switch to ON.
- In the top-left corner, click the Load unpacked button.
- Select the folder containing this extension's files (where
manifest.jsonis located). - The AutoMFA extension is now active! Click the puzzle icon in your toolbar to pin it for easy access if needed.
The XPI file signed by Mozilla is available for download here. You can also try it out in developer mode as shown:
- Download or clone this repository to a folder on your computer.
- Open Mozilla Firefox and navigate to
about:debugging#/runtime/this-firefox. - Click the Load Temporary Add-on... button.
- Select the
manifest.jsonfile inside the extension folder. - The AutoMFA extension is now active and ready to use! You should be able to pin this to your toolbar for easy access if needed.
Follow these simple steps to connect your account and enable hands-free automatic login:
-
Get your Secret Key from Microsoft:
- Go to mysignins.microsoft.com/security-info and sign in with your organization (e.g. Purdue) email.
- Click Add sign-in method and select Microsoft Authenticator.
- Click Next until the QR Code screen appears.
- Click the "I want to use a different authenticator app" or "Can't scan the QR code" link.
- A alphanumeric Secret Key (composed of letters and numbers) will appear on screen. Copy it.
-
Configure the Extension:
- Open the AutoMFA extension popup from your browser toolbar.
- Accept the security disclaimer.
- Interspersed navigation buttons will guide you to Step 2.
- Paste your Secret Key into the input field and click Save & Next.
- Important: Copy the 6-digit TOTP code that appears in the extension popup and paste it back into the Microsoft setup window to verify and finalize your new device.
-
Enjoy Zero-Click Auto-Login:
- Once set up, the extension is active!
- When logging in, AutoMFA will automatically watch for the MFA prompt, choose the verification code method, wait 2 seconds for the page to settle, and securely autofill the code.
- Toggle Feature: If you ever want to turn off the hands-free automation, simply uncheck Zero-Click Auto-Login either during setup or directly from the active TOTP screen inside the popup window. Manual right-click autofilling is still available even when auto-login is disabled.


