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;

autoOTPVerify

</>

Flag to disable automatic retrieval of SMS codes for the given phone number. When receiving a verification code Android automagically digests the OTP code, in some cases this can cause issues like The SMS code has expired. Use it only if absolutely necessary.

autoOTPVerify: boolean;

forceRecaptchaFlowForTesting

</>

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

forceRecaptchaFlowForTesting: boolean;

Methods

setAutoOTPVerify

</>

Sets whether the automatic OTP (One-Time Password) verification should be disabled on Android devices.

setAutoOTPVerify(enabled: boolean): Promise<null>;

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>;