A web extension for retrieving 2FA codes generated by your 2FAuth server from your browser toolbar.
Note
2FAuth is a web app for managing your Two-Factor Authentication (2FA) accounts and generating their security codes.
🔗 2FAuth repository
🔗 2FAuth docs
- Bind your 2FAuth user account (using a Personal Access Token) and retreive your 2FA data and groups
- Retrieve user preferences on binding to avoid setting preferences from scratch (no synchronization afterwards)
- Get fresh TOTP & HOTP codes from your 2FAuth server
- Search in 2FA accounts & Browse groups
- Protect access to your 2FA data with an extension specific password
🔗 Mozilla Add-On store
🔗 Chrome Extension store
You can download XPI files (for Firefox) or CRX files (for Chrome) from the release page of this repository.
Once downloaded, open the extension manager of your browser and drop the downloaded file to install the extension.
npm install
The extension uses the Vite Plugin Web Extension. It allows Hot Module Replacement (HMR) and a watch mode, cross-browser compatibility for the manifest file, automatic browser startup and more.
Simply run npm run dev
in a terminal to launch a new browser and start working on the extension.
The standalone @vue/devtools app comes as an npm dev dependency. Run ./node_modules/.bin/vue-devtools
in a terminal to start it. The app is configured to listen for the extension pop-up and automatically connect to it when it opens.
# Build all distribution versions
npm run dist
# Build Chrome distribution version
npm run build:chrome
# Build Firefox distribution version
npm run build:firefox
Important
Please do not open any issue or discussion in this repository, use the 2FAuth repository.
You can contribute to 2FAuth and this web extension in many ways:
- By reporting bugs, or even better, by submitting a fix with a pull request on the dev branch.
- By suggesting enhancement or new feature. Please have a look to the 2FAuth development project, maybe your idea is already there.
- By correcting or completing translations in a language you speak, using the Crowdin platform. Ask for your language if this one is lacking.
This extension's service worker is a modified version of the one created by @Josh Gaby for his 2FAuth browser extension.