firebase_ui_oauth_oidc 0.2.6 copy "firebase_ui_oauth_oidc: ^0.2.6" to clipboard
firebase_ui_oauth_oidc: ^0.2.6 copied to clipboard

Firebase UI widget for authentication through OAuth2/OIDC providers

example/example.md

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:firebase_ui_oauth_oidc/firebase_ui_oauth_oidc.dart';
import 'package:flutter/material.dart';

import 'example_button_style.dart';
import 'firebase_options.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);

  FirebaseUIAuth.configureProviders([
    OidcProvider(providerId: 'oidc.example', style: const ExampleButtonStyle()),
  ]);

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SignInScreen(
        actions: [
          AuthStateChangeAction<SignedIn>((context, state) {
            // redirect to other screen
          }),
        ],
      ),
    );
  }
}

1
likes
160
points
67
downloads

Publisher

verified publisheriodesignteam.com

Weekly Downloads

Firebase UI widget for authentication through OAuth2/OIDC providers

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

firebase_auth, firebase_ui_oauth, flutter

More

Packages that depend on firebase_ui_oauth_oidc