@@ -7,18 +7,16 @@ of authentication, you can specify that ahead of time so you only need to call
77
88## Configure application in bootstrap  
99
10- To specify your authentication ahead of time, you provide the ` bootstrap `  array 
11- with the ` firebaseAuthConfig `  service. 
12- 
13- The ` firebaseAuthConfig `  services takes in an ` AuthProvider `  and an ` AuthMethod ` .
10+ To specify your authentication ahead of time, you provide the ` AngularFireModule.initializeApp `  function 
11+ with an ` AuthProvider `  and an ` AuthMethod ` .
1412
1513``` ts 
1614
1715const   myFirebaseConfig =  {
18-   apiKey: " <your-key>"  ,
19-   authDomain: " <your-project-authdomain>"  ,
20-   databaseURL: " <your-database-URL>"  ,
21-   storageBucket: " <your-storage-bucket>"  ,
16+   apiKey: ' <your-key>'  ,
17+   authDomain: ' <your-project-authdomain>'  ,
18+   databaseURL: ' <your-database-URL>'  ,
19+   storageBucket: ' <your-storage-bucket>'  ,
2220}
2321
2422const   myFirebaseAuthConfig =  {
@@ -37,33 +35,6 @@ const myFirebaseAuthConfig = {
3735export  class  MyAppModule  {}
3836``` 
3937
40- ** Example bootstrap** 
41- ``` ts 
42- import  { bootstrap  } from  ' @angular/platform-browser-dynamic'  ;
43- import  { enableProdMode  } from  ' @angular/core'  ;
44- import  { AppComponent , environment  } from  ' ./app/'  ;
45- import  {FIREBASE_PROVIDERS , 
46-   defaultFirebase , 
47-   AngularFire , 
48-   AuthMethods , 
49-   AuthProviders , 
50-   firebaseAuthConfig } from  ' angularfire2'  ;
51- 
52- if  (environment .production ) {
53-   enableProdMode ();
54- }
55- 
56- bootstrap (<MyApp >Component , [
57-   FIREBASE_PROVIDERS ,
58-   defaultFirebase ({
59-    //  config object 
60-   }),
61-   firebaseAuthConfig ({
62-     provider: AuthProviders .Twitter ,
63-     method: AuthMethods .Redirect 
64-   })
65- ]);
66- ``` 
6738
6839## Login users  
6940
0 commit comments