Invalid phone number

I am trying to setup MFA with my Mexico mobile number, from a different country, I used the dial code and entered the full mobile number but it says invalid mobile number.
But in my dashboard I see that in the sms charges section Mexico is listed with a price per sms

Thank you for sharing the details of your issue, rixhy! Here’s a summary for the support team and a few suggestions to help troubleshoot:


Issue Summary

  • SDK: Web3Auth Plug n Play (PnP)
  • Platform: iOS (assumed from context and documentation references)
  • Feature: MFA setup with SMS (using a Mexico mobile number)
  • Problem: When entering a Mexico mobile number (with the correct dial code) from a different country, the system returns “invalid mobile number”.

Details Provided

  • You are using the correct international dial code.
  • The mobile number is entered in full international format.
  • The issue occurs during MFA setup (likely via enableMFA or manageMFA).

Next Steps & Suggestions

  1. Phone Number Format:
    Web3Auth expects the phone number in the format +{country_code}-{phone_number} (e.g., +52-XXXXXXXXXX for Mexico).

    • Please double-check that you’re using a hyphen (-) and not a space or other separator.
    • Example: +52-1234567890
  2. Country Restrictions:

    • Some SMS providers may restrict sending OTPs to certain countries or from certain regions.
    • Are you able to try the same number from within Mexico, or with a different network connection (VPN set to Mexico)?
  3. SDK Version:

    • If possible, please confirm the exact version of the PnP iOS SDK you are using. This helps check for any known bugs or updates.
  4. Code Snippet (Optional):

    • If you’re invoking MFA setup programmatically, sharing the relevant code snippet (how you call enableMFA or login with SMS_PASSWORDLESS) can help us spot any formatting or parameter issues.
  5. Console Logs/Screenshots (Optional):

    • If there’s an error message or stack trace in your Xcode console or browser, a screenshot or log excerpt would be helpful.

Documentation Reference


Please confirm:

  • The exact format you used for the phone number (e.g., +52-1234567890)
  • SDK version if you know it

If you can provide a code snippet or screenshot of the error, that would help us diagnose faster. Thank you for your patience—we’ll help you get this sorted!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours