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 7e03cff commit 4cb24bdCopy full SHA for 4cb24bd
lib/modules/auth.js
@@ -61,13 +61,14 @@ export default class Auth extends Base {
61
this.log.info('Creating onAuthStateChanged listener');
62
this.on('onAuthStateChanged', listener);
63
if (this._authResult) listener(this._authResult.user || null);
64
+ return this._offAuthStateChanged.bind(this, listener);
65
}
66
67
/**
68
* Remove auth change listener
69
* @param listener
70
*/
- offAuthStateChanged(listener: Function) {
71
+ _offAuthStateChanged(listener: Function) {
72
this.log.info('Removing onAuthStateChanged listener');
73
this.removeListener('onAuthStateChanged', listener);
74
0 commit comments