flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_auth]: Unable to complete Google OAuth with web WASM

Open Rexios80 opened this issue 1 month ago • 19 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

Web

Description

Unable to complete Google OAuth when built with WASM When connected to the emulator, the auth popup window has an error

Reproducing the issue

Attempt to OAuth with google when built with WASM

Firebase Core version

2.31.1

Flutter Version

3.22.0

Relevant Log Output

Error: Auth Emulator Internal Error: No matching frame
    at assert (http://localhost:9099/emulator/auth/handler?apiKey=API_KEY&appName=%5BDEFAULT%5D&authType=signInViaPopup&redirectUrl=http%3A%2F%2Flocalhost%3A52022%2F&v=10.11.1&eventId=1380118570&providerId=google.com&scopes=profile:291:15)
    at http://localhost:9099/emulator/auth/handler?apiKey=API_KEY&appName=%5BDEFAULT%5D&authType=signInViaPopup&redirectUrl=http%3A%2F%2Flocalhost%3A52022%2F&v=10.11.1&eventId=1380118570&providerId=google.com&scopes=profile:339:7
    at sendAuthEventViaIframeRelay (http://localhost:9099/emulator/auth/handler?apiKey=API_KEY&appName=%5BDEFAULT%5D&authType=signInViaPopup&redirectUrl=http%3A%2F%2Flocalhost%3A52022%2F&v=10.11.1&eventId=1380118570&providerId=google.com&scopes=profile:383:12)
    at saveAuthEvent (http://localhost:9099/emulator/auth/handler?apiKey=API_KEY&appName=%5BDEFAULT%5D&authType=signInViaPopup&redirectUrl=http%3A%2F%2Flocalhost%3A52022%2F&v=10.11.1&eventId=1380118570&providerId=google.com&scopes=profile:338:5)
    at finishWithUser (http://localhost:9099/emulator/auth/handler?apiKey=API_KEY&appName=%5BDEFAULT%5D&authType=signInViaPopup&redirectUrl=http%3A%2F%2Flocalhost%3A52022%2F&v=10.11.1&eventId=1380118570&providerId=google.com&scopes=profile:472:3)
    at HTMLLIElement.<anonymous> (http://localhost:9099/emulator/auth/handler?apiKey=API_KEY&appName=%5BDEFAULT%5D&authType=signInViaPopup&redirectUrl=http%3A%2F%2Flocalhost%3A52022%2F&v=10.11.1&eventId=1380118570&providerId=google.com&scopes=profile:447:7)

Flutter dependencies

Expand Flutter dependencies snippet
Dart SDK 3.5.0-177.0.dev
Flutter SDK 3.22.0-42.0.pre.6
pub_stats 1.0.0+1

dependencies:
- collection 1.18.0
- fast_ui 0.1.2 [flutter fast_extensions fast_nav fast_overlays fast_rx_flutter fast_rx_persistence]
- firebase_analytics 10.10.6 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_app_check 0.2.2+6 [firebase_app_check_platform_interface firebase_app_check_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 4.19.6 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 2.31.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_database 10.5.6 [firebase_core firebase_core_platform_interface firebase_database_platform_interface firebase_database_web flutter]
- firebase_performance 0.9.4+6 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter]
- firebase_ui_database 1.4.3 [collection firebase_database firebase_ui_localizations flutter]
- fl_chart 0.68.0 [equatable flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_svg 2.0.10+1 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- font_awesome_flutter 10.7.0 [flutter]
- get_it 7.7.0 [async collection meta]
- get_time_ago 1.3.1 [intl]
- intl 0.19.0 [clock meta path]
- logger 2.3.0
- pub_api_client 2.6.0 [collection freezed_annotation http oauth2 path pubspec]
- pub_stats_core 1.0.0 [equatable freezed_annotation http json_annotation pub_api_client]
- recase 4.1.0
- sliver_tools 0.2.12 [flutter]
- url_launcher 6.2.6 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- web 0.5.1

dev dependencies:
- flutter_native_splash 2.4.0 [args flutter flutter_web_plugins html image meta path universal_io xml yaml ansicolor]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]
- rexios_lints 6.0.1 [lints flutter_lints]

dependency overrides:
- pub_api_client 2.6.0 [collection freezed_annotation http oauth2 path pubspec]

transitive dependencies:
- _flutterfire_internals 1.3.34 [collection firebase_core firebase_core_platform_interface flutter meta]
- ansicolor 2.0.2
- archive 3.6.0 [crypto path]
- args 2.5.0
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.1
- crypto 3.0.3 [typed_data]
- csslib 1.0.0 [source_span]
- equatable 2.0.5 [collection meta]
- fake_async 1.3.1 [clock collection]
- fast_extensions 0.1.5 [flutter]
- fast_nav 0.4.1 [flutter]
- fast_overlays 0.1.5 [flutter]
- fast_rx 0.6.0 [collection meta]
- fast_rx_flutter 0.1.3 [flutter fast_rx]
- fast_rx_persistence 0.3.0 [collection fast_rx meta]
- firebase_analytics_platform_interface 3.10.7 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.7+6 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_app_check_platform_interface 0.1.0+28 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_app_check_web 0.1.2+6 [_flutterfire_internals firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins web]
- firebase_auth_platform_interface 7.2.7 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.11.6 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web]
- firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.17.0 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_database_platform_interface 0.2.5+34 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_web 0.2.5+6 [firebase_core firebase_core_web firebase_database_platform_interface flutter flutter_web_plugins]
- firebase_performance_platform_interface 0.1.4+34 [_flutterfire_internals firebase_core flutter plugin_platform_interface]
- firebase_performance_web 0.1.6+6 [_flutterfire_internals firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins]
- firebase_ui_localizations 1.11.0 [flutter flutter_localizations path]
- flutter_lints 3.0.2 [lints]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- freezed_annotation 2.4.1 [collection json_annotation meta]
- html 0.15.4 [csslib source_span]
- http 1.2.1 [async http_parser meta web]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image 4.2.0 [archive meta xml]
- json_annotation 4.9.0 [meta]
- leak_tracker 10.0.5 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.5 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- lints 3.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.11.1 [collection]
- meta 1.14.0
- oauth2 2.0.2 [collection crypto http http_parser]
- path 1.9.0
- path_parsing 1.0.1 [vector_math meta]
- petitparser 6.0.2 [meta]
- plugin_platform_interface 2.1.8 [meta]
- pub_semver 2.1.4 [collection meta]
- pubspec 2.3.0 [path pub_semver yaml uri]
- quiver 3.2.1 [matcher]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.7.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.3.2 [collection]
- universal_io 2.2.2 [collection meta typed_data]
- uri 1.0.0 [matcher quiver]
- url_launcher_android 6.3.2 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.3.0 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.2.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface]
- url_launcher_web 2.3.1 [flutter flutter_web_plugins url_launcher_platform_interface web]
- url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface]
- vector_graphics 1.1.11+1 [flutter http vector_graphics_codec]
- vector_graphics_codec 1.1.11+1
- vector_graphics_compiler 1.1.11+1 [args meta path_parsing xml vector_graphics_codec path]
- vector_math 2.1.4
- vm_service 14.2.2
- xml 6.5.0 [collection meta petitparser]
- yaml 3.1.2 [collection source_span string_scanner]

Additional context and comments

No response

Rexios80 avatar May 22 '24 17:05 Rexios80