@@ -262,13 +262,13 @@ Update the service with the following code.
262
262
```bash
263
263
264
264
import { Injectable } from ' @angular/core' ;
265
- import { AuthProviders, FirebaseAuth , FirebaseAuthState, AuthMethods } from ' angularfire2' ;
265
+ import { AuthProviders, AngularFireAuth , FirebaseAuthState, AuthMethods } from ' angularfire2' ;
266
266
267
267
@Injectable()
268
268
export class AuthService {
269
269
private authState: FirebaseAuthState;
270
270
271
- constructor(public auth$: FirebaseAuth ) {
271
+ constructor(public auth$: AngularFireAuth ) {
272
272
this.authState = auth$.getAuth();
273
273
auth$.subscribe((state: FirebaseAuthState) => {
274
274
this.authState = state;
@@ -470,7 +470,7 @@ your ```auth-service.ts``` code should look like this.
470
470
471
471
472
472
import { Injectable } from ' @angular/core' ;
473
- import { AuthProviders, FirebaseAuth , FirebaseAuthState, AuthMethods } from ' angularfire2' ;
473
+ import { AuthProviders, AngularFireAuth , FirebaseAuthState, AuthMethods } from ' angularfire2' ;
474
474
475
475
import { Platform } from ' ionic-angular' ;
476
476
import { Facebook } from ' ionic-native' ;
@@ -479,7 +479,7 @@ import { Facebook } from 'ionic-native';
479
479
export class AuthService {
480
480
private authState: FirebaseAuthState;
481
481
482
- constructor(public auth$: FirebaseAuth , private platform: Platform) {
482
+ constructor(public auth$: AngularFireAuth , private platform: Platform) {
483
483
this.authState = auth$.getAuth();
484
484
auth$.subscribe((state: FirebaseAuthState) => {
485
485
this.authState = state;
0 commit comments