Library contains the following features:
- Authentication using email
- Authentication using social media(facebook, gmail)
- Forgot password
- User logout
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>