mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 17:30:25 -04:00
cb51a8bb9c
* update Flutter Google login example to use google_sign_in package * update build.gradle to support multidex * compatible with native google login * update comments * update readme of sample app * fix the blog to use the new flow * update google login guide for Flutter to use the new flow * Add an intro line for Flutter native google auth guide
2.0 KiB
2.0 KiB
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 iOS, Android, and Web
- Add all of the client IDs in Supabase dashboard under
Auth -> Providers -> Google -> Authorized Client IDsas comma separated values and turn onEnable Sign in with Google - Find the
clientIdvariable inlib/screens/login_screen.dartand paste the iOS and web client IDs. - Run the app on iOS or Android and test the login flow 🚀
