MCPcopy Index your code
hub / github.com/firebase/quickstart-js / alertMessage

Function alertMessage

auth/mfa-password.ts:613–622  ·  view source on GitHub ↗

* Displays the alert message in the toast.

(msg: string)

Source from the content-addressed store, hash-verified

611 * Displays the alert message in the toast.
612 */
613function alertMessage(msg: string) {
614 const snackbarContainer = document.getElementById(
615 'quickstart-snackbar',
616 )! as HTMLDivElement;
617 const data = {
618 message: msg,
619 };
620 // MaterialSnackbar comes from the MDL library
621 (snackbarContainer as any).MaterialSnackbar.showSnackbar(data);
622}
623
624// Listening for Auth state changes.
625onAuthStateChanged(auth, function (user) {

Callers 9

passwordSignInFunction · 0.85
passwordSignUpFunction · 0.85
signOutCurrentUserFunction · 0.85
sendPasswordResetFunction · 0.85
onEnrollVerifyCodeFunction · 0.85
onSignInVerifyCodeFunction · 0.85
onUnenrollFunction · 0.85
displayErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected