We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5b8f5 commit 6259c4dCopy full SHA for 6259c4d
lib/modules/auth.js
@@ -47,7 +47,7 @@ export default class Auth extends Base {
47
*/
48
_onAuthStateChanged(auth) {
49
this._authResult = auth;
50
- this.emit('onAuthStateChanged', this._authResult);
+ this.emit('onAuthStateChanged', this._authResult.user || null);
51
this.authenticated = auth ? auth.authenticated || false : false;
52
if (auth && auth.user && !this._user) this._user = new User(this, auth);
53
else if ((!auth || !auth.user) && this._user) this._user = null;
0 commit comments