From 239e2de21483aa92631b4b05b05cd2bd728a98ca Mon Sep 17 00:00:00 2001 From: jacobawenger Date: Mon, 17 Nov 2014 10:55:13 -0800 Subject: [PATCH] Minor fixes to $firebaseAuth --- src/FirebaseAuth.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FirebaseAuth.js b/src/FirebaseAuth.js index f3639ff3..f8d1f896 100644 --- a/src/FirebaseAuth.js +++ b/src/FirebaseAuth.js @@ -71,10 +71,10 @@ }, // Authenticates the Firebase reference with a custom authentication token. - authWithCustomToken: function(authToken) { + authWithCustomToken: function(authToken, options) { var deferred = this._q.defer(); - this._ref.authWithCustomToken(authToken, this._onLoginHandler.bind(this, deferred)); + this._ref.authWithCustomToken(authToken, this._onLoginHandler.bind(this, deferred), options); return deferred.promise; }, @@ -138,14 +138,14 @@ // Asynchronously fires the provided callback with the current authentication data every time // the authentication data changes. It also fires as soon as the authentication data is // retrieved from the server. - onAuth: function(callback) { + onAuth: function(callback, context) { var self = this; - this._ref.onAuth(callback); + this._ref.onAuth(callback, context); // Return a method to detach the `onAuth()` callback. return function() { - self._ref.offAuth(callback); + self._ref.offAuth(callback, context); }; },