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

Function onEnrollClick

auth/mfa-password.ts:225–234  ·  view source on GitHub ↗

* Handles the enroll button click.

()

Source from the content-addressed store, hash-verified

223 * Handles the enroll button click.
224 */
225function onEnrollClick() {
226 if (auth.currentUser) {
227 auth.currentUser
228 .reload()
229 .then(function () {
230 showMfaDialog();
231 })
232 .catch(displayError);
233 }
234}
235
236/**
237 * Displays the multi-factor dialog.

Callers

nothing calls this directly

Calls 1

showMfaDialogFunction · 0.85

Tested by

no test coverage detected