MCPcopy Create free account
hub / github.com/firebase/quickstart-js / updateSignInButtonUI

Function updateSignInButtonUI

auth/phone-simple-popup.ts:124–126  ·  view source on GitHub ↗

* Updates the Sign-in button state depending on ReCaptcha and form values state.

()

Source from the content-addressed store, hash-verified

122 * Updates the Sign-in button state depending on ReCaptcha and form values state.
123 */
124function updateSignInButtonUI() {
125 signInButton.disabled = !isPhoneNumberValid() || !!window.signingIn;
126}
127
128signInForm.addEventListener('submit', onSignInSubmit);
129phoneNumberInput.addEventListener('keyup', updateSignInButtonUI);

Callers 1

onSignInSubmitFunction · 0.70

Calls 1

isPhoneNumberValidFunction · 0.70

Tested by

no test coverage detected