Sitemap

Member-only story

GitHub Authentication with Firebase in Flutter Apps

Everyone enables Google login — But have you tried GitHub auth with Firebase?

xeladu
2 min readMay 4, 2025
Made with Microsoft Designer

Let’s face it: Google, Facebook, and Apple logins are common. But for dev-centric apps, GitHub login is often a better fit — and few realize how easy it is with Firebase Authentication. Let me show you how it’s done in this article.

Here’s how to set it up

Go to Firebase Console > Authentication > Sign-in Method and choose GitHub provider.

Enable the GitHub sign-in method in Firebase Authentication

Add your Client ID and Client Secret (from GitHub Developer Settings)

Provide GitHub client ID and client secret in Firebase Authentication

All done!

Code snippet

final githubProvider = GithubAuthProvider();
FirebaseAuth.instance.signInWithProvider(githubProvider);

For web:

FirebaseAuth.instance.signInWithPopup(githubProvider);

--

--

xeladu
xeladu

Written by xeladu

Flutter and Firebase expert, blogger on QuickCoder.org, find my ebooks and freebies on shop.quickcoder.org, contact me on me.quickcoder.org!

No responses yet