Skip to content

[google_sign_in][web]: Authentication asked twice #176716

@aleripe

Description

@aleripe

Steps to reproduce

  1. Run the packages google_sign_in example
  2. Press the Sign in with Google button
  3. User is asked an account
  4. User is now signed in successfully
  5. Presse the Request permissions button

Expected results

User is asked for authorization to access the Contacts API

Actual results

User is asked an account again

Code sample

Code sample

Use the packages google_sign_in example

Screenshots or Video

Screenshots / Video demonstration

Logs

Logs

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.35.3, on Microsoft Windows [Versione 10.0.19045.6396], locale it-IT) [1.493ms]
    • Flutter version 3.35.3 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a402d9a437 (5 weeks ago), 2025-09-03 14:54:31 -0700
    • Engine revision ddf47dd3ff
    • Dart version 3.9.2
    • DevTools version 2.48.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android,
      enable-ios, cli-animations, enable-lldb-debugging

[√] Windows Version (10 Pro 64 bit, 22H2, 2009) [6,3s]

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [8,6s]
    • Android SDK at C:\Users\Alessandro\AppData\Local\Android\sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\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)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[√] Chrome - develop for the web [734ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.12) [730ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.14.36408.4
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

[√] Android Studio (version 2025.1.3) [33ms]
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)

[√] VS Code (version 1.99.2) [27ms]
    • VS Code at C:\Users\Alessandro\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.108.0

[√] Connected device (3 available) [980ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Versione 10.0.19045.6396]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 140.0.7339.208
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 141.0.3537.57

[√] Network resources [891ms]
    • All expected network resources are available.

</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions