src/sagas/authModule.js
function createOnAuthStateChangedChannel() {
  const auth = this.app.auth();
  const channel = eventChannel(emit =>
    auth.onAuthStateChanged(user => emit({ user })),
  );
  return channel;
}
function createOnAuthStateChangedChannel() {
  const auth = this.app.auth();
  const channel = eventChannel(emit =>
    auth.onAuthStateChanged(user => emit({ user })),
  );
  return channel;
}
function createOnAuthStateChangedChannel ( ) { const auth = this . app . auth ( ) ; const channel = eventChannel ( emit => auth . onAuthStateChanged ( user => emit ( { user } ) ) , ) ; return channel ; }
Creates channel that will subscribe to changes
to the user's sign-in state.

@returns {eventChannel} onAuthStateChangedChannel
Creates channel that will subscribe to changes to the user s sign - in state .