fusionauth_dart_client 1.47.0 copy "fusionauth_dart_client: ^1.47.0" to clipboard
fusionauth_dart_client: ^1.47.0 copied to clipboard

A FusionAuth client library written in Dart.

5
likes
75/ 160
pub points
3%
popularity

We analyzed this package 2 days ago, and awarded it 75 pub points (of a possible 160):

failed
Follow Dart file conventions
15 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 image link is insecure.

README.md:1:28

  ╷
1 │ <h1>FusionAuth Dart Client <img src="http://img.shields.io/badge/semver-2.0.0-brightgreen.svg?style=flat-square" alt="semver 2.0.0 compliant" /></h1>
  │                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

OK
Provide documentation
20 / 20trigger folding of the section

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

959 out of 3993 API elements (24.0 %) have documentation comments.

Some symbols that are missing documentation: fusionauth_dart_client.APIKey.APIKey.fromJson, fusionauth_dart_client.APIKey.id, fusionauth_dart_client.APIKey.insertInstant, fusionauth_dart_client.APIKey.ipAccessControlListId, fusionauth_dart_client.APIKey.key.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:fusionauth_dart_client/fusionauth_dart_client.dart that imports:
  • package:fusionauth_dart_client/src/FusionAuthRESTClient.dart that imports:
  • dart:io
failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 2705 issues. Showing the first 2:

ERROR: Non-nullable instance field 'credentials' must be initialized.

lib/src/FusionAuthClient.dart:38:3

   ╷
38 │   FusionAuthClient(this.apiKey, this.host, this.tenantId);
   │   ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/FusionAuthClient.dart

ERROR: A value of type 'Future

lib/src/FusionAuthClient.dart:72:12

   ╷
72 │       return _start<ActionResponse, Errors>()
   │ ┌────────────^
73 │ │         .withUri('/api/user/action')
74 │ │         .withJSONBody(request)
75 │ │         .withMethod('POST')
76 │ │         .withResponseHandler(
77 │ │             defaultResponseHandlerBuilder((d) => ActionResponse.fromJson(d)))
78 │ │         .go();
   │ └─────────────^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/FusionAuthClient.dart

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

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

Package Constraint Compatible Latest
json_annotation ^4.1.0 4.9.0 4.9.0
Transitive dependencies
Package Constraint Compatible Latest
meta - 1.15.0 1.15.0

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2195 errors:

  • NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD - lib/src/FusionAuthClient.dart:38:3 - Non-nullable instance field 'credentials' must be initialized.
  • RETURN_OF_INVALID_TYPE - lib/src/FusionAuthClient.dart:72:12 - A value of type 'Future<ClientResponse<dynamic, dynamic>>' can't be returned from the method 'actionUser' because it has a return type of 'Future<ClientResponse<ActionResponse, Errors>>'.
  • RETURN_OF_INVALID_TYPE - lib/src/FusionAuthClient.dart:86:12 - A value of type 'Future<ClientResponse<dynamic, dynamic>>' can't be returned from the method 'activateReactor' because it has a return type of 'Future<ClientResponse<void, Errors>>'.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.6, Dart 3.4.3.

Check the analysis log for details.

5
likes
75
pub points
3%
popularity

Publisher

verified publisherfusionauth.io

A FusionAuth client library written in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

json_annotation

More

Packages that depend on fusionauth_dart_client