Currently, any method I provide for a callback in the on-login attribute of a firebase-auth element gets called once when the page loads while already logged in (makes sense since the session is being checked) but twice when a login actually occurs. Is there a way to prevent the double call, and preferably assign a callback to just a successful login, not every page load?
Currently, any method I provide for a callback in the
on-login
attribute of afirebase-auth
element gets called once when the page loads while already logged in (makes sense since the session is being checked) but twice when a login actually occurs. Is there a way to prevent the double call, and preferably assign a callback to just a successful login, not every page load?