forgerock_authenticator 1.1.2 copy "forgerock_authenticator: ^1.1.2" to clipboard
forgerock_authenticator: ^1.1.2 copied to clipboard

ForgeRock Authenticator plugin allows you to build the power of the official ForgeRock Authenticator application into your own Flutter app.

example/lib/main.dart

/*
 * Copyright (c) 2022 ForgeRock. All rights reserved.
 *
 * This software may be modified and distributed under the terms
 * of the MIT license. See the LICENSE file for details.
 */

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import 'package:forgerock_authenticator_example/providers/authenticator_provider.dart';
import 'package:forgerock_authenticator_example/screens/home_screen.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // initialize SDK
  AuthenticatorProvider.initialize();

  runApp(AuthenticatorApp());
}

class AuthenticatorApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: [
        ChangeNotifierProvider<AuthenticatorProvider>(
            create: (_) => AuthenticatorProvider()..getAllAccounts()
        ),
      ],
      child: MaterialApp(
        home: HomeScreen(),
      ),
    );
  }

}
6
likes
160
points
35
downloads

Publisher

verified publisherforgerock.com

Weekly Downloads

ForgeRock Authenticator plugin allows you to build the power of the official ForgeRock Authenticator application into your own Flutter app.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on forgerock_authenticator