- I'm using phone authentication using firebase in flutter
I/flutter (27587): [firebase_auth/invalid-phone-number] The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code]. [ Invalid format. ]
I was tried sevaral ways but it did't work I was given my verify phone code for firebase given below
> await auth.verifyPhoneNumber(
> phoneNumber: phoneNumber,
> verificationCompleted: verificationCompleted,
> verificationFailed: verificationFailed,
> codeSent: codeSent,
> timeout: const Duration(seconds: 60),
> codeAutoRetrievalTimeout: codeAutoRetrievalTimeout);
my verify codesin ui section
await authCalss.verifyPhonenumber(
"+91 ${phonecontroller.text}",
context,
setData);
Your Phone Number must be formatted like this.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With