The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: use reverse client ID to perform Google login
dshukertjr760bca9a9a46
diff --git a/examples/auth/flutter-native-google-auth/android/app/build.gradle b/examples/auth/flutter-native-google-auth/android/app/build.gradleindex fdfe23b7bb8..70d7156adbd 100644--- a/examples/auth/flutter-native-google-auth/android/app/build.gradle+++ b/examples/auth/flutter-native-google-auth/android/app/build.gradle@@ -53,7 +53,7 @@ android {versionCode flutterVersionCode.toInteger()versionName flutterVersionNamemanifestPlaceholders += [- 'appAuthRedirectScheme': applicationId+ 'appAuthRedirectScheme': 'com.googleusercontent.apps.*account_id*']}diff --git a/examples/auth/flutter-native-google-auth/lib/screens/login_screen.dart b/examples/auth/flutter-native-google-auth/lib/screens/login_screen.dartindex 1bc255d4cc9..562e3d8376b 100644--- a/examples/auth/flutter-native-google-auth/lib/screens/login_screen.dart+++ b/examples/auth/flutter-native-google-auth/lib/screens/login_screen.dart@@ -65,13 +65,8 @@ class _LoginScreenState extends State<LoginScreen> {final clientId =Platform.isIOS ? 'IOS_CLIENT_ID' : 'ANDROID_CLIENT_ID';- /// Application ID or Bundle ID for your app.- /// If the application ID and Bundle ID is different for Android and iOS,- /// make sure the value here matches the platform you are running on.- const applicationId = 'com.example.myauthapp';-- /// Fixed value for google login- const redirectUrl = '$applicationId:/google_auth';+ /// Set as reversed DNS form of Google Client ID + `:/` for Google login+ final redirectUrl = '${clientId.split('.').reversed.join('.')}:/';/// Fixed value for google loginconst discoveryUrl =