parent
1ef1d6f079
commit
0edb79243a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue