firebase_ui_oauth_oidc 0.2.4 copy "firebase_ui_oauth_oidc: ^0.2.4" to clipboard
firebase_ui_oauth_oidc: ^0.2.4 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
0
pub points
35%
popularity

Publisher

verified publisheriodesignteam.com

Firebase UI widget for authentication through OAuth2/OIDC providers

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

firebase_auth, firebase_ui_oauth, flutter

More

Packages that depend on firebase_ui_oauth_oidc