Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.


pub package

Demonstrates how to use the firebase_auth plugin.

Phone Auth

  1. Enable phone authentication in the Firebase console.
  2. Add test phone number and verification code to the Firebase console.
  • For this sample the number +1 408-555-6969 and verification code 888888 are used.
  1. For iOS set the URL Schemes to the REVERSE_CLIENT_ID from the GoogleServices-Info.plist file.
  2. Click the Test verifyPhoneNumber button.
  • If APNs is not enabled or a simulator is being used, verification will be done via a Captcha.
  1. Once the phone number is verified the app displays the test verification code.
  2. Click the Test signInWithPhoneNumber button.
  3. Signed in user's details are displayed in the UI.

Running on Web

Make sure you run the example app on port 5000, since localhost:5000 is whitelisted for Google authentication. To do so, run:

flutter run -d web-server --web-port 5000

Getting Started

For help getting started with Flutter, view our online documentation.

You can’t perform that action at this time.