Jump to top

AuthListenerCallback

alias

An auth listener callback function for auth#onAuthStateChanged.

Example
function listener(user) {
  if (user) {
    // Signed in
  } else {
    // Signed out
  }
}

firebase.auth().onAuthStateChanged(listener);

Type

(user: User | null) => void