Repository: flutter
Issue: google_sign_in Error PlatformException(sign_in_failed, O3.a: 10: , null, null)
Labels: waiting for customer response,in triage

Flutter Doctor:

```
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.2 24C101 darwin-arm64, locale en-US)
    • Flutter version 3.27.1 on channel stable at /opt/homebrew/Caskroom/flutter/3.24.4/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (5 weeks ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/mrcse/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] VS Code (version 1.96.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (5 available)
    • TECNO KD7 (mobile)              • 192.168.1.19:5555     • android-arm64  • Android 10 (API 29)
    • 23129RAA4G (mobile)             • 192.168.1.8:40957     • android-arm64  • Android 15 (API 35)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.2 24C101 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.2 24C101 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 131.0.6778.265
    ! Error: Browsing on the local area network for Jamshid’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.
```



Code:
````
  Future<String?> signinWithGoogle() async {
    try {
      print("Google Sign in Start");
      final GoogleSignIn googleSignIn = GoogleSignIn(
        clientId: Platform.isAndroid
            ? dotenv.env['ANDROID_CLIENT_ID']
            : dotenv.env['IOS_CLIENT_ID'],
        scopes: [
          'https://www.googleapis.com/auth/userinfo.email',
          'https://www.googleapis.com/auth/userinfo.profile',
        ],
      );
      final GoogleSignInAccount? googleUser = await googleSignIn.signIn();
      if (googleUser == null) {
        _logger.e("Google Sign-In canceled by the user.");
        return null; // User canceled the login
      }

      final GoogleSignInAuthentication googleAuth =
          await googleUser.authentication;
      // Return the idToken to send to your backend
      return googleAuth.idToken;
    } catch (e) {
      _logger.e("Error during Google Sign-In: $e");
      print(e);
      return null;
    }
  }
````

<img width="917" alt="Image" src="https://github.com/user-attachments/assets/cd03af2f-1ce8-48af-aef1-2b612561e53b" />

I am not using firebase so added only SHA-1 key for oAuth 2.0 Client Id