File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
packages/auth/src/platform_browser Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -975,7 +975,7 @@ Promise<[ConfirmationResult](./auth.confirmationresult.md#confirmationresult_
975975
976976``` javascript
977977// 'recaptcha-container' is the ID of an element in the DOM.
978- const applicationVerifier = new firebase.auth. RecaptchaVerifier (' recaptcha-container' );
978+ const applicationVerifier = new RecaptchaVerifier (auth, ' recaptcha-container' );
979979const confirmationResult = await signInWithPhoneNumber (auth, phoneNumber, applicationVerifier);
980980// Obtain a verificationCode from the user.
981981const credential = await confirmationResult .confirm (verificationCode);
@@ -1745,7 +1745,7 @@ Promise<void>
17451745
17461746```
17471747// 'recaptcha-container' is the ID of an element in the DOM.
1748- const applicationVerifier = new RecaptchaVerifier('recaptcha-container');
1748+ const applicationVerifier = new RecaptchaVerifier(auth, 'recaptcha-container');
17491749const provider = new PhoneAuthProvider(auth);
17501750const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);
17511751// Obtain the verificationCode from the user.
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ const userCredential = confirmationResult.confirm(verificationCode);
247247
248248``` javascript
249249// 'recaptcha-container' is the ID of an element in the DOM.
250- const applicationVerifier = new RecaptchaVerifier (' recaptcha-container' );
250+ const applicationVerifier = new RecaptchaVerifier (auth, ' recaptcha-container' );
251251const provider = new PhoneAuthProvider (auth);
252252const verificationId = await provider .verifyPhoneNumber (' +16505550101' , applicationVerifier);
253253// Obtain the verificationCode from the user.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import { ProviderId, SignInMethod } from '../../model/enums';
4343 * @example
4444 * ```javascript
4545 * // 'recaptcha-container' is the ID of an element in the DOM.
46- * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');
46+ * const applicationVerifier = new RecaptchaVerifier(auth, 'recaptcha-container');
4747 * const provider = new PhoneAuthProvider(auth);
4848 * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);
4949 * // Obtain the verificationCode from the user.
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class ConfirmationResultImpl implements ConfirmationResult {
117117 * @example
118118 * ```javascript
119119 * // 'recaptcha-container' is the ID of an element in the DOM.
120- * const applicationVerifier = new firebase.auth. RecaptchaVerifier('recaptcha-container');
120+ * const applicationVerifier = new RecaptchaVerifier(auth, 'recaptcha-container');
121121 * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);
122122 * // Obtain a verificationCode from the user.
123123 * const credential = await confirmationResult.confirm(verificationCode);
@@ -435,7 +435,7 @@ export async function _verifyPhoneNumber(
435435 * @example
436436 * ```
437437 * // 'recaptcha-container' is the ID of an element in the DOM.
438- * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');
438+ * const applicationVerifier = new RecaptchaVerifier(auth, 'recaptcha-container');
439439 * const provider = new PhoneAuthProvider(auth);
440440 * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);
441441 * // Obtain the verificationCode from the user.
You can’t perform that action at this time.
0 commit comments