Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 377155f

Browse files
committed
Actually pass the callback to ref.onAuth().
1 parent 4298feb commit 377155f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/FirebaseAuth.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
var ref = this._ref,
160160
deferred = this._q.defer();
161161

162-
var callback = function (authData){
162+
function callback (authData){
163163
if (authData !== null) {
164164
deferred.resolve(authData);
165165
} else if (rejectIfAuthDataIsNull) {
@@ -169,7 +169,9 @@
169169
}
170170
// Turn off this onAuth() callback since we just needed to get the authentication data once.
171171
ref.offAuth(callback);
172-
};
172+
}
173+
174+
ref.onAuth(callback);
173175

174176
return deferred.promise;
175177
},

0 commit comments

Comments
 (0)