Skip to content

incwell-technology/firebase-auth

Repository files navigation

firebase-auth

Library contains the following features:

  1. Authentication using email
  2. Authentication using social media(facebook, gmail)
  3. Forgot password
  4. User logout

To get a Git project into your build:

Step 1. Add it in your root build.gradle at the end of repositories:

   allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
   }

Step 2. Add the dependency

   implementation 'com.github.incwell-technology:firebase-auth:latest_version'

Step 3.

   class App : Application()
   {
    override fun onCreate() {
        super.onCreate()
        Auth.init(this, "Web client ID from firebase console")
    }
   }

Step 4. Keep google-services.json in app/ directory

Step 5.

dependencies {
   classpath 'com.google.gms:google-services:4.0.1'
}

Step 6. in app level build.gradle

dependencies {}
apply plugin: 'com.google.gms.google-services'

Step 7. in strings.xml

<string name="facebook_app_id">your_app_id</string>
<string name="fb_login_protocol_scheme">your_login_protocal_scheme</string>

firebase-auth is part of


         OHS