@@ -49,15 +49,15 @@ Below is an example on how to use `FirebaseAuth` with a redirect upon sign-in:
49
49
import React from ' react' ;
50
50
import StyledFirebaseAuth from ' react-firebaseui/StyledFirebaseAuth' ;
51
51
import { initializeApp } from ' firebase/app' ;
52
- import { getAuth , EmailAuthProvider , GoogleAuthProvider } from ' firebase/auth' ;
52
+ import { getAuth , FacebookAuthProvider , GoogleAuthProvider } from ' firebase/auth' ;
53
53
54
54
// Configure Firebase.
55
55
const config = {
56
56
apiKey: ' AIzaSyAeue-AsYu76MMQlTOM-KlbYBlusW9c1FM' ,
57
57
authDomain: ' myproject-1234.firebaseapp.com' ,
58
58
// ...
59
59
};
60
- const firebaseApp = initializeApp (firebaseConfig );
60
+ const firebaseApp = initializeApp (config );
61
61
62
62
// Configure FirebaseUI.
63
63
const uiConfig = {
@@ -96,15 +96,15 @@ Below is an example on how to use `StyledFirebaseAuth` with a state change upon
96
96
import React , { useEffect , useState } from ' react' ;
97
97
import StyledFirebaseAuth from ' react-firebaseui/StyledFirebaseAuth' ;
98
98
import { initializeApp } from ' firebase/app' ;
99
- import { getAuth , onAuthStateChanged , signOut , EmailAuthProvider , GoogleAuthProvider } from ' firebase/auth' ;
99
+ import { getAuth , onAuthStateChanged , signOut , FacebookAuthProvider , GoogleAuthProvider } from ' firebase/auth' ;
100
100
101
101
// Configure Firebase.
102
102
const config = {
103
103
apiKey: ' AIzaSyAeue-AsYu76MMQlTOM-KlbYBlusW9c1FM' ,
104
104
authDomain: ' myproject-1234.firebaseapp.com' ,
105
105
// ...
106
106
};
107
- const firebaseApp = initializeApp (firebaseConfig );
107
+ const firebaseApp = initializeApp (config );
108
108
109
109
// Configure FirebaseUI.
110
110
const uiConfig = {
0 commit comments