Showing posts from April, 2018

Simple Example of Firebase Authentication in Kotlin

Here is the simple example of Authentication process using Firebase in Kotlin Programming Language.

Step 1. Login into Firebase Console and create your project.

Step 2. Navigate into Authentication and enable your preferred login methods.

Step 3. Create your Android project and add the following classpath into root of the project's build.gradle.
classpath '' Step 4. And then add the following plugin into your module's build.gradle.
apply plugin: '' Step 5. And then add the following dependency into your module's build.gradle.
implementation 'com.firebaseui:firebase-ui-auth:3.3.1' That's you wanted to access the Firebase's Authentication API in your project.
Here is the methods to Sign In, Sign Out and delete the account. Sign In private fun signIn() { // Choose authentication providers val providers = Arrays.asList(AuthUI.IdpConfig.GoogleBuilder().build(), …