mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: use reverse client ID to perform Google login
This commit is contained in:
1 parent
0bdfe8589c
commit
760bca9a9a
2 files changed
+3
-8
No files matched your search
@@ -53,7 +53,7 @@ android {
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
manifestPlaceholders += [
|
||||
'appAuthRedirectScheme': applicationId
|
||||
'appAuthRedirectScheme': 'com.googleusercontent.apps.*account_id*'
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
@@ -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 login
|
||||
const discoveryUrl =
|
||||
|
||||
Reference in new issue
Block a user