oauth2_client 2.4.2 copy "oauth2_client: ^2.4.2" to clipboard
oauth2_client: ^2.4.2 copied to clipboard

outdated

Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure OAuth token storage, automatic token refeshing.

140/ 160
pub points
27.1k
downloads

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

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-2-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

44 out of 152 API elements (28.9 %) have documentation comments.

Some symbols that are missing documentation: access_token_response, access_token_response.AccessTokenResponse.AccessTokenResponse.errorResponse, access_token_response.AccessTokenResponse.AccessTokenResponse.fromHttpResponse, access_token_response.AccessTokenResponse.AccessTokenResponse.fromMap, access_token_response.AccessTokenResponse.AccessTokenResponse.new.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:oauth2_client/oauth2_client.dart that imports:
  • package:oauth2_client/src/io_web_auth.dart that imports:
  • package:flutter_web_auth/flutter_web_auth.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:oauth2_client/oauth2_client.dart that imports:
  • package:oauth2_client/src/io_web_auth.dart that imports:
  • package:flutter_web_auth/flutter_web_auth.dart that declares support for platforms: Android, iOS, macOS, Web.

Passed check 0/0 points: WASM compatibility

This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.

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

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 17 issues. Showing the first 2:

INFO: An uninitialized variable should have an explicit type annotation.

lib/access_token_response.dart:34:13

   ╷
34 │         var expiresIn;
   │             ^^^^^^^^^
   ╵

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

INFO: Missing type annotation.

lib/access_token_response.dart:83:23

   ╷
83 │   bool refreshNeeded({secondsToExpiration = 30}) {
   │                       ^^^^^^^^^^^^^^^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest Notes
crypto ^3.0.1 3.0.6 3.0.6
flutter_secure_storage ^5.1.0 5.1.2 9.2.4
flutter_web_auth ^0.4.1 0.4.3 0.6.0
http ^0.13.4 0.13.6 1.5.0
meta ^1.7.0 1.16.0 1.17.0
random_string ^2.3.1 2.3.1 2.3.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
flutter_secure_storage_linux - 1.2.3 2.0.1
flutter_secure_storage_macos - 1.1.2 4.0.0
flutter_secure_storage_platform_interface - 1.1.2 2.0.1
flutter_secure_storage_web - 1.2.1 2.0.0
flutter_secure_storage_windows - 1.1.3 4.0.0
http_parser - 4.1.2 4.1.2
js - 0.6.7 0.7.2 Discontinued
material_color_utilities - 0.11.1 0.13.0
path - 1.9.1 1.9.1
plugin_platform_interface - 2.1.8 2.1.8
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0

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

Found 3 issues. Showing the first 2:

The constraint `^5.1.0` on flutter_secure_storage does not support the stable version `6.0.0`.

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

The constraint `^0.4.1` on flutter_web_auth does not support the stable version `0.5.0`.

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
197
likes
140
points
27.1k
downloads

Publisher

verified publisherfemtopedia.de

Weekly Downloads

Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure OAuth token storage, automatic token refeshing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

crypto, flutter, flutter_secure_storage, flutter_web_auth, http, meta, random_string

More

Packages that depend on oauth2_client