Skip to content

Firebase Auth does not work on web #627

@israpasos

Description

@israpasos

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I am developing a web app. The app doesn't navigate after being logged in with Google if visited from naked domain. Works if appending /home

Expected Behavior

When logging in app should navigate to logged in page as normal.

Steps To Reproduce

These are the steps:

  1. Using Safari visit URL.OF.PUBLISHED.SITE.
  2. Login with Google
  3. The Google auth window will appear. Select an account.
  4. The page does not redirect. There will be an uncaught exception in the console.
  5. Reload. The app routes as it should.

It works if you visit URL.OF.PUBLISHED.SITE/home directly. Try this:

  1. Logout
  2. Visit URL.OF.PUBLISHED.SITE/home
  3. Login with Google
  4. The flow works

So the problem appears to be when the app loads from the naked domain. When you access the page directly through the route /home it works.

Bug Report Code

IT4Kz8+A35NItbxY1pD+asZavDwWGDs4arhFlu0bWQgbGIutG7YAW/SkQE9WZ7yhdH02fGGahmUf0//IufbIN/VdZEmYRbp91ZABazr/TkSgVaquDamKdEZtINpKCGKY35m72SJ4IvZpL1477GGMHfCycCzfQ+fzIUcBOvyaGJPVjXPuQ0SLb3kNh1JWeC/v

Context

This is derailing my entire project. I might have to move to Remix. App needs to work on desktop and mobile browsers without an actual app.

Additional info

No response

Environment

- FlutterFlow version: v3.1 - Flutter 3.7.3
- Platform: macOS
- Browser name and version: 
   - Chrome desktop Version 110.0.5481.100 (Official Build) (arm64)
   - Safari mobile
   - Safari desktop Version 16.2 (18614.3.7.1.5)
- Operating system and version affected: macOS Ventura 13.1

Metadata

Metadata

Labels

status: needs triageA potential issue that has not been confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions