From 0edb79243a0302857214f1231b3101207a5ab157 Mon Sep 17 00:00:00 2001 From: Michael Diarmid Date: Tue, 13 Jun 2017 02:09:12 +0100 Subject: [PATCH] AuthResult fix Fixes #144 --- lib/modules/auth/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }