oauth2_client 3.3.0
oauth2_client: ^3.3.0 copied to clipboard
Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure OAuth token storage, automatic token refeshing.
We analyzed this package 19 hours ago, and awarded it 140 pub points (of a possible 160):
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: BSD-2-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
45 out of 155 API elements (29.0 %) 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.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Android`.
Because:
package:oauth2_client/oauth2_client.dartthat imports:package:oauth2_client/src/io_web_auth.dartthat imports:package:flutter_web_auth_2/flutter_web_auth_2.dartthat imports:package:flutter_web_auth_2/src/server.dartthat imports:package:window_to_front/window_to_front.dartthat declares support for platforms:Windows,Linux,macOS.
Package does not support platform `iOS`.
Because:
package:oauth2_client/oauth2_client.dartthat imports:package:oauth2_client/src/io_web_auth.dartthat imports:package:flutter_web_auth_2/flutter_web_auth_2.dartthat imports:package:flutter_web_auth_2/src/server.dartthat imports:package:window_to_front/window_to_front.dartthat declares support for platforms:Windows,Linux,macOS.
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.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 12 issues. Showing the first 2:
INFO: Missing type annotation.
lib/access_token_response.dart:84:23
╷
84 │ bool refreshNeeded({secondsToExpiration = 30}) {
│ ^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/access_token_response.dart
INFO: Angle brackets will be interpreted as HTML.
lib/oauth2_client.dart:32:43
╷
32 │ /// Normally you would use something like <customUriScheme>:/oauth for the [redirectUri] field.
│ ^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/oauth2_client.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
crypto |
^3.0.3 |
3.0.7 | 3.0.7 | |
flutter_secure_storage |
^9.2.2 |
9.2.4 | 10.0.0 | |
flutter_web_auth_2 |
^3.1.2 |
3.1.2 | 5.0.1 | |
http |
^1.1.0 |
1.6.0 | 1.6.0 | |
meta |
^1.12.0 |
1.17.0 | 1.18.1 | |
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 | |
code_assets |
- | 1.0.0 | 1.0.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
ffi |
- | 2.1.5 | 2.1.5 | |
file |
- | 7.0.1 | 7.0.1 | |
flutter_secure_storage_linux |
- | 1.2.3 | 3.0.0 | |
flutter_secure_storage_macos |
- | 3.1.3 | 4.0.0 | |
flutter_secure_storage_platform_interface |
- | 1.1.2 | 2.0.1 | |
flutter_secure_storage_web |
- | 1.2.1 | 2.1.0 | |
flutter_secure_storage_windows |
- | 3.1.2 | 4.1.0 | |
flutter_web_auth_2_platform_interface |
- | 3.1.0 | 5.0.0 | |
glob |
- | 2.1.3 | 2.1.3 | |
hooks |
- | 1.0.1 | 1.0.1 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
js |
- | 0.6.7 | 0.7.2 | Discontinued |
logging |
- | 1.3.0 | 1.3.0 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
native_toolchain_c |
- | 0.17.4 | 0.17.4 | |
objective_c |
- | 9.2.5 | 9.2.5 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider |
- | 2.1.5 | 2.1.5 | |
path_provider_android |
- | 2.2.22 | 2.2.22 | |
path_provider_foundation |
- | 2.6.0 | 2.6.0 | |
path_provider_linux |
- | 2.2.1 | 2.2.1 | |
path_provider_platform_interface |
- | 2.1.2 | 2.1.2 | |
path_provider_windows |
- | 2.3.0 | 2.3.0 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
pub_semver |
- | 2.2.0 | 2.2.0 | |
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 | |
url_launcher |
- | 6.3.2 | 6.3.2 | |
url_launcher_android |
- | 6.3.28 | 6.3.28 | |
url_launcher_ios |
- | 6.3.6 | 6.3.6 | |
url_launcher_linux |
- | 3.2.2 | 3.2.2 | |
url_launcher_macos |
- | 3.2.5 | 3.2.5 | |
url_launcher_platform_interface |
- | 2.3.2 | 2.3.2 | |
url_launcher_web |
- | 2.4.2 | 2.4.2 | |
url_launcher_windows |
- | 3.1.5 | 3.1.5 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
win32 |
- | 5.15.0 | 5.15.0 | |
window_to_front |
- | 0.0.3 | 0.0.3 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
yaml |
- | 3.1.3 | 3.1.3 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^9.2.2` on flutter_secure_storage does not support the stable version `10.0.0`.
Try running dart pub upgrade --major-versions flutter_secure_storage to update the constraint.
The constraint `^3.1.2` on flutter_web_auth_2 does not support the stable version `4.0.0`.
Try running dart pub upgrade --major-versions flutter_web_auth_2 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.23.8, Flutter 3.38.8, Dart 3.10.7.
Check the analysis log for details.