diff --git a/lib/modules/auth/index.js b/lib/modules/auth/index.js index de0f8ee9..e9621e30 100644 --- a/lib/modules/auth/index.js +++ b/lib/modules/auth/index.js @@ -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); }