/Login-via-Firebase-UI-Library

Welcome to "Login-via-Firebase-UI-Library" it contains an Android App which helps users to sign in with their Email, Google, Github, Facebook, Twitter and with their phone number.

Primary LanguageKotlinApache License 2.0Apache-2.0

Login-via-Firebase-UI-Library

Welcome to "Login-via-Firebase-UI-Library" repo. It contains an Android App which helps users to sign in with their Email, Google account, Github, Facebook, Twitter and with their phone number. Some features in this project are:

  • Sign in using Email, Google, Github, Facebook, Twitter, or your phone number.
  • Firebase Authentication for secure and easy authentication methods.
  • Clean and intuitive user interface.
  • Easily customizable for your own branding.

Preview:

Pic 1: Click on Login.
Pic 2: Sign in with Google.
Pic 3: After successfully signing in, you can retrieve the user's image, name, email associated wirh that Google account.

Main Screen Sign in Screen Main Screen After Signing In

Getting Started:

As the project does not contain play-services.json file, thus you have to get your own from Firebase. To get this config file and to use the project on your system, follow the steps below:

Create a Firebase Project:

  • Go to the Firebase Console
  • Click 'Add Project' and follow the prompts to create a new project with the same project ID as this project has.

Enable Google Sign-In:

  • In your Firebase project's console, navigate to the "Authentication" section.
  • Under the "Sign-in method" tab, enable the "Google" sign-in provider. (don't forget to enable other providers for using them. Rememeber, for enabling facebook provider you also need App Id and App secret which you can get from develpoers.facebook.com

Download google-services.json:

  • After enabling Google Sign-In, click on the "Download" button next to "google-services.json".
  • Place the downloaded google-services.json file in the app directory of your Android project.

Run the App:

  • Open the project in Android Studio.
  • Build and run the app in Emulator or in your physical device.