Skip to content

Commit b1b3b43

Browse files
authored
fix(ui_auth): fix docs typo for EmailAuthProvider. (#9927)
* Update navigation.md * Update migration.md * Update auth_state.dart * Update theming.md
1 parent beba859 commit b1b3b43

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Diff for: packages/firebase_ui_auth/doc/migration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Below is the list of necessary changes that you have to make to migrate to `fire
6161
- ]);
6262

6363
+ FirebaseUIAuth.configureProviders([
64-
+ const EmailProvider(),
64+
+ const EmailAuthProvider(),
6565
+ ]);
6666
```
6767

Diff for: packages/firebase_ui_auth/doc/navigation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ First, we define the root route that checks for authentication state and renders
1818
class MyApp extends StatelessWidget {
1919
@override
2020
Widget build(BuildContext context) {
21-
const providers = [EmailProvider()];
21+
const providers = [EmailAuthProvider()];
2222
2323
return MaterialApp(
2424
initialRoute: FirebaseAuth.instance.currentUser == null ? '/sign-in' : '/profile',
@@ -68,7 +68,7 @@ navigate to a named route, provide the `actions` list with a `ForgotPasswordActi
6868
class MyApp extends StatelessWidget {
6969
@override
7070
Widget build(BuildContext context) {
71-
const providers = [EmailProvider()];
71+
const providers = [EmailAuthProvider()];
7272
7373
return MaterialApp(
7474
initialRoute: FirebaseAuth.instance.currentUser == null ? '/sign-in' : '/profile',

Diff for: packages/firebase_ui_auth/doc/theming.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FirebaseAuthUIExample extends StatelessWidget {
1818
return const MaterialApp(
1919
home: SignInScreen(
2020
providers: [
21-
EmailProvider(),
21+
EmailAuthProvider(),
2222
],
2323
),
2424
);
@@ -47,7 +47,7 @@ class FirebaseAuthUIExample extends StatelessWidget {
4747
),
4848
home: const SignInScreen(
4949
providers: [
50-
EmailProvider(),
50+
EmailAuthProvider(),
5151
],
5252
),
5353
);
@@ -84,7 +84,7 @@ class FirebaseAuthUIExample extends StatelessWidget {
8484
),
8585
home: const SignInScreen(
8686
providers: [
87-
EmailProvider(),
87+
EmailAuthProvider(),
8888
],
8989
),
9090
);

Diff for: packages/firebase_ui_auth/lib/src/auth_state.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ typedef AuthStateListenerCallback<T extends AuthController> = bool? Function(
232232
/// AuthStateListener<EmailAuthController>(
233233
/// child: LoginView(
234234
/// actions: AuthAction.signIn,
235-
/// providers: [EmailProvider()],
235+
/// providers: [EmailAuthProvider()],
236236
/// ),
237237
/// listener: (oldState, state, controller) {
238238
/// if (state is AuthFailed) {

0 commit comments

Comments
 (0)