mirror of
https://github.com/supabase/supabase.git
synced 2026-06-22 01:02:52 +08:00
Flutter native Google auth with Supabase
A simple Flutter application with native Google login capabilities on iOS and Android using Supabase auth. Upon signing in, the user is presented with a profile screen where their name and profile image from their Google account are displayed.
Getting Started
- Create a new Supabase project here
- Add your Supabase credentials to
lib/main.dart - Obtain Google API client ID for Android and iOS
- Add the client IDs in Supabase dashboard under
Auth -> Providers -> Google -> Authorized Client IDsand turn onEnable Sign in with Google - Find the
clientIdvariable inlib/screens/login_screen.dartand paste the two client IDs - For android open
android/app/build.gradlefile, locateappAuthRedirectSchemevariable and replace the value with your reversed DNS form of the Android client ID. For example, if your client ID is1234567890-abc123def456.apps.googleusercontent.com, then the value should becom.googleusercontent.apps.1234567890-abc123def456 - Run the app on iOS or Android and test the login flow 🚀
