Skip to content

A browser extension to retrieve 2FA security codes generated from your 2FAuth server

License

Notifications You must be signed in to change notification settings

Bubka/2FAuth-WebExtension

Repository files navigation

2FAuth-Browser-Extension

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

Current features of the extension

  • 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

Installation

Official stores

🔗 Mozilla Add-On store
🔗 Chrome Extension store

Github releases

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.

Development

Requirements

Install js dependencies

npm install

Dev build

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.

Enable vue devTools

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.

Distribution builds

# Build all distribution versions
npm run dist

# Build Chrome distribution version
npm run build:chrome

# Build Firefox distribution version
npm run build:firefox

Contributing

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:

Derivative work

This extension's service worker is a modified version of the one created by @Josh Gaby for his 2FAuth browser extension.

License

AGPL-3.0