Coffee & Code - Google Auth Integration for Book Quotes
All posts

Coffee & Code - Google Auth Integration for Book Quotes

Adding Google Authentication to the Book Quotes app using Firebase, including SHA fingerprint setup for Android and third-party sign-in integration.

Trey Hope 10 November 2023 1 min read
Sample Image
Cappuccino from Tastefully Roasted Coffee in Dayton, OH.

The Book Quotes app hasn’t been touched in a minute, and I realised today that I never ran the app on Android. That’s bad practice as a developer, but luckily everything was running pretty smooth.

Sample Image
Cappuccino from Tastefully Roasted Coffee in Dayton, OH.

This time I added Google Auth to allow users to authenticate themselves via their own gmail accounts. One tedious task when setting all of this up, is the SHA fingerprints. SHA-1 information is required by Firebase Authentication when using Google auth or phone number auth, as well as for Firebase Dynamic Links.

Sample Image
ChatGPT response on how to generate the SHA-1 & SHA-256 fingerprints.

Typically Google and Apple are the most common 3rd party options for authentication, but for now I am focused on bringing Google into the equation.

Sample Image
SHA certificate fingerprints in Firebase, required for Google Authentication.