Skip to content

Commit ff5429d

Browse files
cweidingerdavideast
authored andcommitted
FirebaseAuth doesn't exist .. it's AngularFireAuth
1 parent 21333b5 commit ff5429d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Auth-with-Ionic2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ Update the service with the following code.
262262
```bash
263263
264264
import { Injectable } from '@angular/core';
265-
import { AuthProviders, FirebaseAuth, FirebaseAuthState, AuthMethods } from 'angularfire2';
265+
import { AuthProviders, AngularFireAuth, FirebaseAuthState, AuthMethods } from 'angularfire2';
266266
267267
@Injectable()
268268
export class AuthService {
269269
private authState: FirebaseAuthState;
270270
271-
constructor(public auth$: FirebaseAuth) {
271+
constructor(public auth$: AngularFireAuth) {
272272
this.authState = auth$.getAuth();
273273
auth$.subscribe((state: FirebaseAuthState) => {
274274
this.authState = state;
@@ -470,7 +470,7 @@ your ```auth-service.ts``` code should look like this.
470470
471471
472472
import { Injectable } from '@angular/core';
473-
import { AuthProviders, FirebaseAuth, FirebaseAuthState, AuthMethods } from 'angularfire2';
473+
import { AuthProviders, AngularFireAuth, FirebaseAuthState, AuthMethods } from 'angularfire2';
474474
475475
import { Platform } from 'ionic-angular';
476476
import { Facebook } from 'ionic-native';
@@ -479,7 +479,7 @@ import { Facebook } from 'ionic-native';
479479
export class AuthService {
480480
private authState: FirebaseAuthState;
481481
482-
constructor(public auth$: FirebaseAuth, private platform: Platform) {
482+
constructor(public auth$: AngularFireAuth, private platform: Platform) {
483483
this.authState = auth$.getAuth();
484484
auth$.subscribe((state: FirebaseAuthState) => {
485485
this.authState = state;

0 commit comments

Comments
 (0)