Jump to top

AuthSettings

interface

Interface for module auth settings.

Example
const settings = firebase.auth().settings;
console.log(settings.appVerificationDisabledForTesting);

Properties

appVerificationDisabledForTesting

</>

Flag to disable app verification for the purpose of testing phone authentication. For this property to take effect, it needs to be set before rendering a reCAPTCHA app verifier. When this is disabled, a mock reCAPTCHA is rendered instead. This is useful for manual testing during development or for automated integration tests.

appVerificationDisabledForTesting: boolean;

forceRecaptchaFlowForTesting

</>

Forces application verification to use the web reCAPTCHA flow for Phone Authentication.

forceRecaptchaFlowForTesting: boolean;

Methods

setAutoRetrievedSmsCodeForPhoneNumber

</>

Calling this method a second time will overwrite the previously passed parameters. Only one number can be configured at a given time.

setAutoRetrievedSmsCodeForPhoneNumber(phoneNumber: string, smsCode: string): Promise<null>;