Skip to content

Commit

Permalink
fix(auth): Use the injected app
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant authored and davideast committed Apr 17, 2017
1 parent a332bc4 commit 980c447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class AngularFireAuth {
* Firebase Auth instance
*/
auth: firebase.auth.Auth;

/**
* Observable of authentication state
*/
Expand All @@ -35,7 +35,7 @@ export class AngularFireAuth {
*/
export function FirebaseAuthStateObservable(app: FirebaseApp): Observable<firebase.User> {
const authState = Observable.create((observer: Observer<firebase.User>) => {
firebase.auth().onAuthStateChanged(
app.auth().onAuthStateChanged(
(user?: firebase.User) => observer.next(user),
(error: firebase.auth.Error) => observer.error(error),
() => observer.complete()
Expand Down

0 comments on commit 980c447

Please sign in to comment.