AuthResult fix

Fixes #144
This commit is contained in:
Michael Diarmid 2017-06-13 02:09:12 +01:00 committed by GitHub
parent 1ef1d6f079
commit 0edb79243a
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export default class Auth extends Base {
onAuthStateChanged(listener: Function) {
this.log.info('Creating onAuthStateChanged listener');
this.on('onAuthStateChanged', listener);
if (this._authResult) listener(this._authResult.user || null);
if (this._authResult) listener(this._user || null);
return this._offAuthStateChanged.bind(this, listener);
}