auth0 1.1.0

  • Readme
  • Changelog
  • Installing
  • new59

auth0 #

Flutter package for authentication using Auth0 API.Contains basic set of methods like passwordRealm, getUser, logout etc.

Usage #

Auth0Client(clientId, baseUrl,
        connectTimeout: 10000, sendTimeout: 10000, receiveTimeout: 60000);

Available methods #

updateToken - Updates current access token for Auth0 connection
authorizeUrl - Builds the full authorize endpoint url in the Authorization Server (AS) with given parameters.
passwordRealm - Performs Auth with user credentials using the Password Realm Grant
refreshToken - Obtains new tokens using the Refresh Token obtained during Auth (requesting offline_access scope)
getUserInfo - Returns user information using an access token
resetPassword - Requests an email with instructions to change password of a user
logout - Makes logout API call
createUser - Performs creating user with specified values
revoke - Revokes an issued refresh token
exchange - Exchanges a code obtained via /authorize (w/PKCE) for the user's tokens

[1.0.0] - 17.03.2020. #

  • Basic set of API methods

[1.0.1] - 17.03.2020. #

  • Minor file format

[1.1.0] - 17.03.2020. #

  • Fixed some methods

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  auth0: ^1.1.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:auth0/auth0.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
21
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
59
Learn more about scoring.

We analyzed this package on Mar 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and auth0.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
dio ^3.0.9 3.0.9
flutter 0.0.0
Transitive dependencies
charcode 1.1.3
collection 1.14.11 1.14.12
http_parser 3.1.4
meta 1.1.8
path 1.6.4
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test