Calling this method a second time will overwrite the previously passed parameters. Only one number can be configured at a given time.
The phone number and SMS code here must have been configured in the Firebase Console (Authentication > Sign In Method > Phone).
await firebase.auth().settings.setAutoRetrievedSmsCodeForPhoneNumber('+4423456789', 'ABCDE');
The users phone number.
The pre-set SMS code.
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.
In order to use this feature, you will need to whitelist your phone number via the Firebase Console.
Forces application verification to use the web reCAPTCHA flow for Phone Authentication.
Once this has been called, every call to PhoneAuthProvider#verifyPhoneNumber() will skip the Play Integrity API verification flow and use the reCAPTCHA flow instead.
Calling this method a second time will overwrite the previously passed parameter.
Interface for module auth settings.
Example