Skip to main content

flutter_mfa 0.2.0 copy "flutter_mfa: ^0.2.0" to clipboard
flutter_mfa: ^0.2.0 copied to clipboard

Multi-factor authentication for Flutter: a TOTP/HOTP authenticator with hardware-backed storage (Keystore, Keychain, WebCrypto), biometric protection and encrypted backup.

Changelog #

All notable changes to this package are documented here. The format follows Keep a Changelog and this package uses Semantic Versioning (0.x: a minor bump may break).

0.2.0 - 2026-11-08 #

  • MfaClient.create now throws VaultUnavailable(insecureContext) on a web page outside a secure context, as documented, instead of failing on the first vault read.

  • MfaClient.setScreenCaptureProtection: hides the app from screenshots and the recent-apps preview on Android (FLAG_SECURE); no-op on iOS and the web, as capabilities.screenCaptureProtection reports (FR-FAC-06).

  • Device integrity hook: DeviceIntegrityCheck, NoopIntegrityCheck, IntegrityReport, IntegrityVerdict, IntegrityPolicy and MfaClient.checkIntegrity; create applies the policy (FR-FAC-03).

  • iOS: biometric (Keychain item with .biometryCurrentSet) and hardwareBound (Secure Enclave key wrapping the secret) protection; saving never prompts, re-enrolment gives VaultKeyInvalidated (FR-VLT-05/06). Apps need NSFaceIDUsageDescription.

  • Android: biometric and hardwareBound protection (API 30+): per-account Keystore keys unlocked by a strong biometric through BiometricPrompt and a CryptoObject for every read; StrongBox for hardwareBound when present; new biometric enrolments invalidate the keys (VaultKeyInvalidated). Works with any host activity (FR-VLT-05/06).

  • MfaClient.exportEncrypted / importEncrypted with DuplicateStrategy and ImportReport: encrypted backups (format v1), all-or-nothing import, key derivation off the UI thread (FR-BAK-03).

  • MfaClient.codeStream (live TOTP codes, secret read once per subscription), copyCode and copySensitive (sensitive clipboard with expiry). All live streams of a client share one timer.

  • MfaClient.createEnrollment returns a RelyingPartyEnrollment: a new secret, its otpauth:// URI and a TotpVerifier for confirming the user's first code.

  • iOS: the vault is wiped on the first launch after an install, so a reinstalled app does not regain an earlier installation's accounts (ADR-0012). Upgrade note: builds taken from git before this change have no install marker, so their first launch on this version also wipes the vault. No published version is affected; the first release ships with the marker.

0.1.0-dev.1 #

  • Initial package skeleton (not yet published).
0
likes
160
points
62
downloads

Documentation

Documentation
API reference

Publisher

verified publisherbreaktroughf1.com

Weekly Downloads

Multi-factor authentication for Flutter: a TOTP/HOTP authenticator with hardware-backed storage (Keystore, Keychain, WebCrypto), biometric protection and encrypted backup.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#authentication #mfa #security #totp #otp

License

MIT (license)

Dependencies

flutter, flutter_mfa_core, flutter_mfa_platform_interface, flutter_web_plugins, meta, web

More

Packages that depend on flutter_mfa

Packages that implement flutter_mfa