The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > RecaptchaVerifier > (constructor)

RecaptchaVerifier.(constructor)

Constructs a new instance of the RecaptchaVerifier class

Signature:

constructor(containerOrId: HTMLElement | string, parameters: Parameters, authExtern: Auth);

Parameters

Parameter Type Description
containerOrId HTMLElement | string The reCAPTCHA container parameter.
parameters Parameters The optional reCAPTCHA parameters.
authExtern Auth The corresponding Firebase Auth instance.

Description

If none is provided, the default Firebase Auth instance is used. A Firebase Auth instance must be initialized with an API key, otherwise an error will be thrown.