firebase_multi_factor_auth 0.0.1 copy "firebase_multi_factor_auth: ^0.0.1" to clipboard
firebase_multi_factor_auth: ^0.0.1 copied to clipboard

Flutter & Dart library for implementing multi factor auth via Firebase.

3
likes
100/ 160
pub points
34
downloads

We analyzed this package 22 hours ago, and awarded it 100 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

32 out of 120 API elements (26.7 %) have documentation comments.

Some symbols that are missing documentation: 1_firebase_multi_factor_auth_widget, 1_firebase_multi_factor_auth_widget.FirebaseMultiFactorAuthWidget, 1_firebase_multi_factor_auth_widget.FirebaseMultiFactorAuthWidget.FirebaseMultiFactorAuthWidget, 1_firebase_multi_factor_auth_widget.FirebaseMultiFactorAuthWidget.loginWidget, 1_firebase_multi_factor_auth_widget.FirebaseMultiFactorAuthWidget.mainWidget.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:firebase_multi_factor_auth/firebase_multi_factor_auth.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `Linux`.

Because:

  • package:firebase_multi_factor_auth/firebase_multi_factor_auth.dart that declares support for platforms: Android, iOS, Web.
Package does not support platform `macOS`.

Because:

  • package:firebase_multi_factor_auth/firebase_multi_factor_auth.dart that declares support for platforms: Android, iOS, Web.

These issues are present but do not affect the score, because they may not originate in your package:

Package not compatible with platform Web

Because:

  • package:firebase_multi_factor_auth/firebase_multi_factor_auth.dart that imports:
  • package:firebase_multi_factor_auth/functions/sign_out.dart that imports:
  • package:firebase_multi_factor_auth/provider/auth_provider.dart that imports:
  • package:firebase_multi_factor_auth/utils/storage/encrypted_storage.dart that imports:
  • package:firebase_multi_factor_auth/utils/storage/encryption_utils.dart that imports:
  • package:flutter_secure_storage/flutter_secure_storage.dart that imports:
  • package:flutter_secure_storage_platform_interface/flutter_secure_storage_platform_interface.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

Found 16 issues. Showing the first 2:

ERROR: The name 'AuthProvider' is defined in the libraries 'package:firebase_auth_platform_interface/src/auth_provider.dart (via package:firebase_auth/firebase_auth.dart)' and 'package:firebase_multi_factor_auth/provider/auth_provider.dart'.

lib/functions/firestore_set_first_login.dart:19:15

   ╷
19 │   Provider.of<AuthProvider>(context, listen: false).notifyListeners();
   │               ^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/functions/firestore_set_first_login.dart

ERROR: The name 'AuthProvider' is defined in the libraries 'package:firebase_auth_platform_interface/src/auth_provider.dart (via package:firebase_auth/firebase_auth.dart)' and 'package:firebase_multi_factor_auth/provider/auth_provider.dart'.

lib/functions/login_second_provider.dart:17:34

   ╷
17 │   var authProvider = Provider.of<AuthProvider>(context, listen: false);
   │                                  ^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/functions/login_second_provider.dart

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
cloud_firestore ^4.8.2 4.17.5 5.6.0
firebase_auth ^4.6.3 4.16.0 5.3.4
flutter flutter 0.0.0 0.0.0
flutter_secure_storage ^8.0.0 8.1.0 9.2.2
flutter_web_plugins flutter 0.0.0 0.0.0
google_sign_in ^6.1.4 6.2.2 6.2.2
logger ^1.4.0 1.4.0 2.5.0
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
provider ^6.0.5 6.1.2 6.1.2
Transitive dependencies
Package Constraint Compatible Latest
_flutterfire_internals - 1.3.35 1.3.48
async - 2.11.0 2.12.0
boolean_selector - 2.1.1 2.1.2
characters - 1.3.0 1.4.0
clock - 1.1.1 1.1.2
cloud_firestore_platform_interface - 6.2.5 6.6.0
cloud_firestore_web - 3.12.5 4.4.0
collection - 1.19.0 1.19.1
fake_async - 1.3.1 1.3.2
firebase_auth_platform_interface - 7.3.0 7.4.10
firebase_auth_web - 5.8.13 5.13.5
firebase_core - 2.32.0 3.9.0
firebase_core_platform_interface - 5.4.0 5.4.0
firebase_core_web - 2.19.0 2.19.0
flutter_secure_storage_linux - 1.2.1 1.2.1
flutter_secure_storage_macos - 3.1.2 3.1.2
flutter_secure_storage_platform_interface - 1.1.2 1.1.2
flutter_secure_storage_web - 1.2.1 1.2.1
flutter_secure_storage_windows - 2.1.1 3.1.2
flutter_test - 0.0.0 0.0.0
google_identity_services_web - 0.3.3 0.3.3
google_sign_in_android - 6.1.34 6.1.34
google_sign_in_ios - 5.7.8 5.7.8
google_sign_in_platform_interface - 2.4.5 2.4.5
google_sign_in_web - 0.12.4+3 0.12.4+3
http - 1.2.2 1.2.2
http_parser - 4.1.1 4.1.1
js - 0.6.7 0.7.1
leak_tracker - 10.0.7 10.0.8
leak_tracker_flutter_testing - 3.0.8 3.0.9
leak_tracker_testing - 3.0.1 3.0.1
matcher - 0.12.16+1 0.12.17
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
nested - 1.0.0 1.0.0
path - 1.9.0 1.9.1
sky_engine - 0.0.0 0.0.0
source_span - 1.10.0 1.10.1
stack_trace - 1.12.0 1.12.1
stream_channel - 2.1.2 2.1.3
string_scanner - 1.3.0 1.4.1
term_glyph - 1.2.1 1.2.2
test_api - 0.7.3 0.7.4
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
vm_service - 14.3.0 15.0.0
web - 1.1.0 1.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 4 issues. Showing the first 2:

The constraint `^4.8.2` on cloud_firestore does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions cloud_firestore to update the constraint.

The constraint `^4.6.3` on firebase_auth does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions firebase_auth to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.17, Flutter 3.27.0, Dart 3.6.0.

Check the analysis log for details.

3
likes
100
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter & Dart library for implementing multi factor auth via Firebase.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cloud_firestore, firebase_auth, flutter, flutter_secure_storage, flutter_web_plugins, google_sign_in, logger, plugin_platform_interface, provider

More

Packages that depend on firebase_multi_factor_auth