Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

firebase-auth Trigger an event on _locationChanged > _authHandler when there is no login or logout. #117

Description

@MartinGerritsen

Right now, locally, I have touched the firebase-auth.html on line 178 adding an else to the list.

if (this._queuedLogin) {
    this.login(this._queuedLogin.params, this._queuedLogin.options);
    this._queuedLogin = null;
} else if (!this.statusKnown && this.autoLogin) {
    this.login();
} else {
   this.fire('nonaction');
}

If something like this could be added to the basic firebase-auth that would be great!
I am using it to trigger showing a login icon or a logged icon - without it you first see the login icon and you see it jump to the logged icon.

Thanks!

Activity

  1. ebidel commented on Mar 21, 2016

    @ebidel
    Contributor

    Is this #115?

  2. MartinGerritsen commented on Mar 22, 2016

    @MartinGerritsen
    Author

    Close to spot on, thanks! (and sorry for missing it). The only difference is that I would like the event to fire only when no other events fire and not always, to distinguish it as a nonaction and not just a general auth attempt which might also become a correct login.

    edit: nevermind, I just realized it's spot on 100%! What is the right move to do now? Close this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions