Open hatano0x06 opened 4 months ago
@hatano0x06 Thanks for reporting this issue. I've tested the example application found here: https://github.com/firebase/flutterfire/tree/master/packages/firebase_auth/firebase_auth/example, and it works without any issues.
Can you please try again? If the issue still occurs, please provide a small reproduction example where this issue is happening.
I tried it with the sample code, but it did not callback.
https://github.com/firebase/flutterfire/assets/7422251/3c4cd526-cb80-47f7-848e-8fc756984e3b
I was reading the readme and was wondering, is there a sample config.dart listed here?
https://github.com/firebase/flutterfire/blob/master/packages/firebase_auth/firebase_auth/example/README.md#twitter-sign-in
4. Add your keys to the example app config in lib/config.dart.
@hatano0x06 Does it work with the already defined flutterfire config found in the example code?
@TarekkMA doesn't work
https://github.com/firebase/flutterfire/assets/7422251/c9f6679f-edd4-4ff7-a167-897717122506
I've tested it again, and it does work as expected. Please create a minimal reproducible example following the guidelines here: Minimal Reproducible Example where the issue is happening.
@TarekkMA I tryed the minimal product but it doesn't work https://github.com/hatano0x06/authTest/tree/main/authtest
is there progress on this issue?
I had the same problem logging in with firebase on the Android
Try updating all the Firebase packages you have set up and double check all configurations. I've just integrated Twitter login into my application, and it's working to some extent. Initially, when you try to log in, instead of closing the pop-up and returning to the application, it loads the Twitter page in the pop-up and fails the first time. However, on the second attempt, it seems to retain the authentication session, logs in correctly, closes the pop-up, and returns the verificationId.
On Android, I'm able to log in as well, except when the mobile's default browser is Firefox. It works on Chrome, though, and I'm opening an issue about it.
@rsegecin I could confirm that doing it twice would work. However, not all users will do it twice, and I think this is a feature that should be successful once
This problem may be a twitter problem, but I would appreciate a continuous solution! Thanks for looking into all of this.
this issue seems to be unrelated with flutter fire, please see #13141 for more info.
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Web
Description
When I try to use firebase_auth for twitter authentication, it doesn't authenticate, and I get twitter login as it is.
https://github.com/firebase/flutterfire/assets/7422251/8c728de8-deea-4f71-940f-5f42feacf9ac
Reproducing the issue
minimal source
$ run
flutter run -d chrome --web-port=5000 --web-renderer=canvaskit
$ presstest
button and login in twitterFirebase Core version
3.1.0
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml Dart SDK 3.4.3 Flutter SDK 3.22.2 mangaplotter 6.55.22 dependencies: - android_id 0.3.6 [flutter] - android_play_install_referrer 0.4.0 [flutter] - auto_animated 3.2.0 [flutter visibility_detector] - cloud_firestore 5.0.1 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cloud_functions 5.0.1 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter] - configurable_expansion_tile_null_safety 3.3.2 [flutter] - connectivity_plus 5.0.2 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm] - crop_your_image 1.1.0 [flutter image] - cupertino_icons 1.0.8 - device_info_plus 9.1.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry] - dio 5.4.3+1 [async http_parser meta path] - dotted_border 2.1.0 [flutter path_drawing] - email_validator 2.1.17 - encrypt 5.0.3 [args asn1lib clock collection crypto pointycastle] - esys_flutter_share 1.0.7 [flutter path_provider] - expandable 5.0.1 [flutter] - extended_image 8.2.1 [extended_image_library flutter meta] - file_picker 8.0.5 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32 cross_file web] - firebase_analytics 11.0.1 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 5.1.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 3.1.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 4.0.1 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_performance 0.10.0+1 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter] - firebase_storage 12.0.1 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter] - flex_color_picker 3.5.0 [flex_seed_scheme flutter] - fluro 2.0.5 [flutter] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine] - flutter_chat_bubble 2.0.2 [flutter] - flutter_easyloading 3.0.5 [flutter flutter_spinkit] - flutter_email_sender 6.0.3 [flutter] - flutter_facebook_auth 7.0.1 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web facebook_auth_desktop] - flutter_image 4.1.11 [flutter] - flutter_inapp_purchase 5.6.1 [flutter http meta platform] - flutter_inappwebview 5.8.0 [flutter] - flutter_local_notifications 17.1.2 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math] - flutter_staggered_animations 1.1.1 [flutter] - flutter_svg 2.0.10+1 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler] - flutter_swipe_action_cell 3.1.3 [flutter] - flutter_swiper_plus 2.0.4 [vector_math flutter] - flutter_tags_x 1.1.0 [flutter] - flutter_timezone 1.0.8 [flutter_web_plugins flutter js] - flutter_typeahead 5.2.0 [flutter flutter_keyboard_visibility pointer_interceptor] - fluttertoast 8.2.6 [flutter flutter_web_plugins web] - google_sign_in 6.2.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - hexcolor 3.0.1 [flutter flutter_web_plugins] - home_widget 0.6.0 [flutter path_provider path_provider_foundation] - html_unescape 2.0.0 - image_picker 1.1.2 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows] - in_app_purchase 3.2.0 [flutter in_app_purchase_android in_app_purchase_platform_interface in_app_purchase_storekit] - in_app_purchase_storekit 0.3.16 [collection flutter in_app_purchase_platform_interface json_annotation] - jiffy 6.3.1 [intl] - keyboard_actions 4.2.0 [flutter] - keyboard_service 2.0.2 [flutter] - linkify 5.0.0 - material_design_icons_flutter 7.0.7296 [flutter] - modal_bottom_sheet 2.1.2+1 [flutter] - outline_material_icons 1.0.0 [flutter] - package_info_plus 5.0.1 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32] - passcode_screen 2.0.1 [flutter] - path_provider 2.1.3 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - permission_handler 11.3.1 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface] - photo_view 0.15.0 [flutter] - pointer_interceptor 0.10.1+1 [flutter flutter_web_plugins pointer_interceptor_ios pointer_interceptor_platform_interface pointer_interceptor_web] - pull_down_button 0.9.4 [flutter meta] - shared_preferences 2.2.3 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - sign_in_button 3.2.0 [flutter font_awesome_flutter] - sign_in_with_apple 6.1.1 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web] - sqflite 2.3.3+1 [flutter sqflite_common path] - svg_path_parser 1.1.2 [string_scanner flutter] - syncfusion_flutter_gauges 26.1.35 [flutter syncfusion_flutter_core intl] - text_divider 1.0.0 [flutter] - timezone 0.9.3 [path] - tutorial_coach_mark 1.1.17 [flutter] - twitter_login 4.4.2 [crypto flutter http] - universal_html 2.2.4 [async csslib charcode collection html meta source_span typed_data universal_io] - url_launcher 6.3.0 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - url_strategy 0.2.0 [flutter_web_plugins] - validators 3.0.0 - visibility_detector 0.4.0+2 [flutter] - weather_icons 3.0.0 [flutter] - web_browser_detect 2.0.3 [flutter universal_html] dev dependencies: - flutter_driver 0.0.0 [file flutter flutter_test fuchsia_remote_debug_protocol path meta vm_service webdriver async boolean_selector characters clock collection leak_tracker leak_tracker_flutter_testing leak_tracker_testing matcher material_color_utilities platform process source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api vector_math] - flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml] - 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] - test 1.25.2 [analyzer async boolean_selector collection coverage http_multi_server io js matcher node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel test_api test_core typed_data web_socket_channel webkit_inspection_protocol yaml] dependency overrides: - web 0.5.1 transitive dependencies: - _fe_analyzer_shared 61.0.0 [meta] - _flutterfire_internals 1.3.37 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 5.13.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.4.10 [crypto path pointycastle] - args 2.4.2 - asn1lib 1.5.0 - async 2.11.0 [collection meta] - boolean_selector 2.1.1 [source_span string_scanner] - characters 1.3.0 - charcode 1.3.1 - checked_yaml 2.0.3 [json_annotation source_span yaml] - cli_util 0.4.1 [meta path] - clock 1.1.1 - cloud_firestore_platform_interface 6.2.7 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 4.0.1 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins] - cloud_functions_platform_interface 5.5.30 [firebase_core flutter meta plugin_platform_interface] - cloud_functions_web 4.9.8 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins] - collection 1.18.0 - connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface] - convert 3.1.1 [typed_data] - coverage 1.7.2 [args logging package_config path source_maps stack_trace vm_service] - cross_file 0.3.4+1 [meta web] - crypto 3.0.3 [typed_data] - csslib 0.17.3 [source_span] - dbus 0.7.8 [args ffi meta xml] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - extended_image_library 4.0.4 [crypto flutter http_client_helper js path path_provider web] - facebook_auth_desktop 2.0.0 [flutter http flutter_secure_storage flutter_facebook_auth_platform_interface] - fake_async 1.3.1 [clock collection] - ffi 2.1.2 - file 7.0.0 [meta path] - file_selector_linux 0.9.2 [cross_file file_selector_platform_interface flutter] - file_selector_macos 0.9.3 [cross_file file_selector_platform_interface flutter] - file_selector_platform_interface 2.6.0 [cross_file flutter http plugin_platform_interface] - file_selector_windows 0.9.3 [cross_file file_selector_platform_interface flutter] - firebase_analytics_platform_interface 4.0.1 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.7+9 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins] - firebase_auth_platform_interface 7.4.0 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.12.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web] - firebase_core_platform_interface 5.1.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.17.2 [firebase_core_platform_interface flutter flutter_web_plugins meta web] - firebase_crashlytics_platform_interface 3.6.37 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_performance_platform_interface 0.1.4+37 [_flutterfire_internals firebase_core flutter plugin_platform_interface] - firebase_performance_web 0.1.6+9 [_flutterfire_internals firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins] - firebase_storage_platform_interface 5.1.24 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_storage_web 3.9.9 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http meta web] - flex_seed_scheme 2.0.0 [collection flutter meta] - flutter_facebook_auth_platform_interface 6.0.0 [flutter plugin_platform_interface] - flutter_facebook_auth_web 6.0.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface] - flutter_keyboard_visibility 6.0.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_linux flutter_keyboard_visibility_macos flutter_keyboard_visibility_web flutter_keyboard_visibility_windows flutter] - flutter_keyboard_visibility_linux 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_keyboard_visibility_macos 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface] - flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter] - flutter_keyboard_visibility_windows 1.0.0 [flutter_keyboard_visibility_platform_interface flutter] - flutter_local_notifications_linux 4.0.0+1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories] - flutter_local_notifications_platform_interface 7.1.0 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.20 [flutter] - flutter_secure_storage 9.0.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta] - flutter_secure_storage_linux 1.2.0 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_macos 3.0.1 [flutter flutter_secure_storage_platform_interface] - flutter_secure_storage_platform_interface 1.0.2 [flutter plugin_platform_interface] - flutter_secure_storage_web 1.1.2 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js] - flutter_secure_storage_windows 3.0.0 [ffi flutter flutter_secure_storage_platform_interface path path_provider win32] - flutter_spinkit 5.2.1 [flutter] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - font_awesome_flutter 10.7.0 [flutter] - frontend_server_client 3.2.0 [async path] - fuchsia_remote_debug_protocol 0.0.0 [process vm_service file meta path platform] - glob 2.1.2 [async collection file path string_scanner] - google_identity_services_web 0.2.1 [js meta] - google_sign_in_android 6.1.16 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.7.1 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.4.1 [flutter plugin_platform_interface quiver] - google_sign_in_web 0.12.0+2 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http js] - html 0.15.4 [csslib source_span] - http 1.1.0 [async http_parser meta] - http_client_helper 3.0.0 [http] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.2.0 [archive meta xml] - image_picker_android 0.8.7+3 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 2.2.0 [flutter flutter_web_plugins image_picker_platform_interface mime] - image_picker_ios 0.8.8 [flutter image_picker_platform_interface] - image_picker_linux 0.2.1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_macos 0.2.1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_platform_interface 2.10.0 [cross_file flutter http plugin_platform_interface] - image_picker_windows 0.2.1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface] - in_app_purchase_android 0.3.5 [collection flutter in_app_purchase_platform_interface json_annotation] - in_app_purchase_platform_interface 1.4.0 [flutter plugin_platform_interface] - intl 0.19.0 [clock meta path] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - json_annotation 4.8.1 [meta] - leak_tracker 10.0.4 [clock collection meta path vm_service] - leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta] - leak_tracker_testing 3.0.1 [leak_tracker matcher meta] - logging 1.2.0 - matcher 0.12.16+1 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.8.0 [collection] - meta 1.12.0 - mime 1.0.4 - nm 0.5.0 [dbus] - node_preamble 2.0.2 - package_config 2.1.0 [path] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path 1.9.0 - path_drawing 1.0.1 [vector_math meta path_parsing flutter] - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.2.0 [flutter path_provider_platform_interface] - path_provider_foundation 2.4.0 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface] - path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32] - permission_handler_android 12.0.7 [flutter permission_handler_platform_interface] - permission_handler_apple 9.4.5 [flutter permission_handler_platform_interface] - permission_handler_html 0.1.1 [flutter flutter_web_plugins permission_handler_platform_interface] - permission_handler_platform_interface 4.2.1 [flutter meta plugin_platform_interface] - permission_handler_windows 0.2.1 [flutter permission_handler_platform_interface] - petitparser 5.4.0 [meta] - platform 3.1.4 - plugin_platform_interface 2.1.8 [meta] - pointer_interceptor_ios 0.10.1 [flutter plugin_platform_interface pointer_interceptor_platform_interface] - pointer_interceptor_platform_interface 0.10.0+1 [flutter plugin_platform_interface] - pointer_interceptor_web 0.10.2 [flutter flutter_web_plugins plugin_platform_interface pointer_interceptor_platform_interface web] - pointycastle 3.7.3 [collection convert js] - pool 1.5.1 [async stack_trace] - process 5.0.2 [file path platform] - pub_semver 2.1.4 [collection meta] - quiver 3.2.1 [matcher] - shared_preferences_android 2.1.4 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.4.0 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.3.1 [flutter plugin_platform_interface] - shared_preferences_web 2.1.0 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf 1.4.1 [async collection http_parser path stack_trace stream_channel] - shelf_packages_handler 3.0.2 [path shelf shelf_static] - shelf_static 1.1.2 [convert http_parser mime path shelf] - shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel] - sign_in_with_apple_platform_interface 1.1.0 [flutter plugin_platform_interface meta] - sign_in_with_apple_web 2.1.0 [flutter flutter_web_plugins sign_in_with_apple_platform_interface] - sky_engine 0.0.99 - source_map_stack_trace 2.1.1 [path source_maps stack_trace] - source_maps 0.10.12 [source_span] - source_span 1.10.0 [collection path term_glyph] - sqflite_common 2.5.0 [synchronized path meta] - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - string_scanner 1.2.0 [source_span] - sync_http 0.3.1 - syncfusion_flutter_core 26.1.35 [vector_math flutter] - synchronized 3.1.0 - term_glyph 1.2.1 - test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - test_core 0.6.0 [analyzer args async boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel test_api vm_service yaml] - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - url_launcher_android 6.3.3 [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.1.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.1 - watcher 1.1.0 [async path] - web_socket_channel 2.4.0 [async crypto stream_channel] - webdriver 3.0.3 [matcher path stack_trace sync_http] - webkit_inspection_protocol 1.2.0 [logging] - win32 5.5.1 [ffi] - win32_registry 1.1.1 [ffi win32] - xdg_directories 1.0.4 [meta path] - xml 6.3.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] ```
Additional context and comments
No response