Configuring the client app to use the authentication service

Once the project is configured, go to Project Setting | General | Your Apps. You should see the app that you created. Download google-services.json and put it inside your root directory of the project. Afterwards, just run  your app. If your app has launched and you can see your activity on the screen, it means Firebase is correctly configured in the app.

Now, it's time to write some Kotlin code.

If you see in the source code, we have written FirebaseLoginActivity. This activity has all the code that takes care of user authentication using Firebase. We are not discussing all of it here, but we will cover the important functions.

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.