Switch branches/tags
Find file History
collinjackson and kroikie Introduce credentials to firebase_auth (#928)
* Move classes into separate files

* Refactoring to use auth providers

* Merge refactoring

* Update to use revised signInWithCredential API
Latest commit a444ad1 Nov 28, 2018



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.

Getting Started

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