Files
supabase/examples/auth/flutter-native-google-auth
Tyler eae972b55a blog: update past Flutter blog content to use supabase_flutter v2 (#19634)
* update flutter quick start and example app to use flutter v2

* update examples and blog articles to use Flutter SDK v2

* fix versions used in examples

* update image picker to 1.0.5

* minor code refactor for sample code
2023-12-19 11:34:03 +09:00
..

Flutter native Google auth with Supabase

Flutter Google authentication with Supabase auth

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.

  • Full tutorial article here
  • Full video guide here

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 IDs as comma separated values and turn on Enable Sign in with Google
  • Find the clientId variable in lib/screens/login_screen.dart and paste the iOS and web client IDs.
  • Run the app on iOS or Android and test the login flow 🚀

Resources