Skip to content

Commit e475c6d

Browse files
committed
Only send the current auth event to the new listener
1 parent 8ffa0ee commit e475c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modules/auth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class Auth extends Base {
4747
onAuthStateChanged(listener) {
4848
this.log.info('Creating onAuthStateChanged listener');
4949
this.on('onAuthStateChanged', listener);
50-
FirestackAuth.listenForAuth();
50+
if (this._authResult) listener(this._authResult);
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)