auth_flutter 2.0.0 auth_flutter: ^2.0.0 copied to clipboard
A flutter plug-in for the native Auth library (Android and iOS).
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add auth_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
auth_flutter: ^2.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:auth_flutter/credential/apple_credential.dart';
import 'package:auth_flutter/credential/custom_credential.dart';
import 'package:auth_flutter/credential/facebook_credential.dart';
import 'package:auth_flutter/credential/google_credential.dart';
import 'package:auth_flutter/credential/login_credential.dart';
import 'package:auth_flutter/credential/phone_otp_credential.dart';
import 'package:auth_flutter/credential/username_password_credential.dart';
import 'package:auth_flutter/model/iam_token.dart';
import 'package:auth_flutter/model/id_token.dart';
import 'package:auth_flutter/model/user_info.dart';
import 'package:auth_flutter/provider/apple_provider.dart';
import 'package:auth_flutter/provider/custom_token_provider.dart';
import 'package:auth_flutter/provider/facebook_provider.dart';
import 'package:auth_flutter/provider/google_provider.dart';
import 'package:auth_flutter/provider/phone_otp_provider.dart';
import 'package:auth_flutter/provider/username_password_provider.dart';
import 'package:auth_flutter/result/result.dart';
import 'package:auth_flutter/terra_auth.dart';