Skip to content

Error in sign in with google platform exception platformException(sign_in_failed,com.google.android.gms.common.api.apiException:10,null , null) canceled — [16] Account reauth failed #184918

Description

@Abdo-ka

What package does this bug report belong to?

extension_google_sign_in_as_googleapis_auth

What target platforms are you seeing this bug on?

Android, iOS

Have you already upgraded your packages?

Yes

Dependency versions

pubspec.lock
[[Paste file content here]](https://pastebin.com/wKaQ7CER)

Steps to reproduce

  1. Create a minimal app: flutter create google_sign_in_repro && cd google_sign_in_repro
  2. Add dependency in pubspec.yaml: google_sign_in: ^7.2.0 (same major line as your app).
  3. Add Firebase Android setup: place a valid google-services.json for your package name under android/app/ and apply the Google Services Gradle plugin as in FlutterFire Android setup.
  4. Replace YOUR_WEB_CLIENT_ID in the sample below with the Web application OAuth client ID (client_type: 3 in google-services.json).
  5. Run on a physical Android device (or emulator with Play Store): flutter run.
  6. Tap Sign in with Google, pick a Google account.
  7. Observe the exception immediately after account selection.

Expected results

After selecting an account, GoogleSignIn.instance.authenticate() should complete successfully and return a GoogleSignInAccount, and account.authentication.idToken should be non-null when serverClientId is set correctly.

Actual results

authenticate() throws:
GoogleSignInException( code: GoogleSignInExceptionCode.canceled, description: [16] Account reauth failed., details: null, )
The flow fails right after choosing an account (not a visible user cancel). OAuth consent screen is In production; Android OAuth clients and SHA-1 fingerprints are configured in Firebase/Google Cloud for the same Firebase project, this error just happened when I publish application into Firebase App Distribution this error happened also when publish application into Google play.
I have been added she key from debug and release and profile also from App signing SHA

Code sample

Code sample
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
/// Use your Web client ID (OAuth 2.0 "Web application" / client_type 3 from
/// google-services.json). Do not commit real IDs to a public repo.
const String kServerClientId = 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com';
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await GoogleSignIn.instance.initialize(serverClientId: kServerClientId);
  runApp(const MaterialApp(home: ReproPage()));
}
class ReproPage extends StatefulWidget {
  const ReproPage({super.key});
  @override
  State<ReproPage> createState() => _ReproPageState();
}
class _ReproPageState extends State<ReproPage> {
  String _status = 'Idle';
  Future<void> _signIn() async {
    setState(() => _status = 'Signing in...');
    try {
      final account = await GoogleSignIn.instance.authenticate();
      setState(() => _status = 'OK: ${account.email}');
    } on GoogleSignInException catch (e) {
      setState(() => _status = '${e.code} | ${e.description}');
    } catch (e) {
      setState(() => _status = 'Error: $e');
    }
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('google_sign_in repro')),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(_status, textAlign: TextAlign.center),
            const SizedBox(height: 16),
            FilledButton(
              onPressed: _signIn,
              child: const Text('Sign in with Google'),
            ),
          ],
        ),
      ),
    );
  }
}

Screenshots or Videos

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.41.4, on macOS 26.3 25D125 darwin-arm64, locale en-US) [593ms]
    • Flutter version 3.41.4 on channel stable at /Users/abdo_ka/fvm/versions/3.41.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff37bef603 (6 weeks ago), 2026-03-03 16:03:22 -0800
    • Engine revision e4b8dca3f1
    • Dart version 3.11.1
    • DevTools version 2.54.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [15.9s]
    • Android SDK at /Users/abdo_ka/development/sdk
    • Emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • ANDROID_HOME = /Users/abdo_ka/development/sdk
    • ANDROID_SDK_ROOT = /Users/abdo_ka/development/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [1,781ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) [5ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Connected device (2 available) [6.2s]
    • iPhone 17 Pro Max (mobile) • 5B08EADC-6CB8-4F9E-A723-C4317D11F1FA • ios          • com.apple.CoreSimulator.SimRuntime.iOS-26-2 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64 • macOS 26.3 25D125 darwin-arm64
    ! Error: Browsing on the local area network for Abd alrahman’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 [4.1s]
    • All expected network resources are available.
! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions