Skip to content

Login works (Firebase auth succeeds) but app does not navigate after login until page refresh (Web) #7013

@superro-pl

Description

@superro-pl

Can we access your project?

  • 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

We are experiencing an issue with the login flow in a FlutterFlow web app.

After clicking the Log In button:

Firebase authentication succeeds (user appears in Firebase Auth),
the user session is correctly established,
however, the app does not navigate to the next page (neither via manual navigation nor automatic redirect).

Only after manually refreshing the page, the app correctly recognizes the authenticated state and loads the proper screen.

##Actual behavior

Login succeeds,
subsequent actions (e.g. Snackbar) execute,
but navigation does not happen,
app stays on login screen,
after browser refresh → user is correctly redirected.

Expected Behavior

After successful login, the app should immediately navigate to the target page (either via manual Navigate action or via Logged In Page redirect).

Steps to Reproduce

  1. Enter login/pass and click on Login.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4ghfLl8c5Itbxf1s/Ace9WqGQsG241R4c0st5Hd0gdCOPrBuwUY8mlbhZoTuHiaVNcJ1WljmUJwsLOkYbMG/cqITuaUaY/yapUSDzke2i5MK6wPs2vdWhABd1hCkCyyJ2jpyZ/LsFpV3wd22eTNe6tUXLDFOu/Zwh9f6PHaOI=

Visual documentation

What we tested

We performed extensive debugging to isolate the issue:

  1. Button & action flow
    Verified button click works (Snackbar displays correctly)
    Confirmed action chain executes after Log In
    Tested:
    Navigate To
    Navigate Replace
    Rebuild Page
    None of them trigger navigation
  2. Removed all complexity from login screen
    Created a completely new, minimal login page:
    email + password fields
    single button with:
    Log In
    Navigate
    Same issue persists
  3. Tested navigation independently
    Added test button with only Navigate To → works correctly
    → navigation system itself is functional
  4. Tested with minimal destination page
    Created a completely empty test page (no queries, no logic)
    Navigation still does not happen after login
  5. Tested with and without manual navigation
    Variant A:
    only Log In
    using Logged In Page in App Settings
    Variant B:
    disabled global redirect
    manual navigation after login
    Neither works
  6. Removed all Page Load logic
    Removed On Page Load actions (including App State updates)
    No change
  7. Removed NavBar / custom navigation dependencies
    Tested navigation to:
    NavBar page
    non-NavBar page
    Same behavior
  8. Verified issue is not UI-related
    Other buttons on the same screen (page switching, interactions) work correctly
    Issue is specific to login flow
  9. Tested across environments
    FlutterFlow Test Mode
    Deployed web app
    Different browsers
    Incognito mode
    → Issue persists everywhere

Additional observations

Firebase Auth clearly succeeds (user is created / logged in)
App state updates correctly (user ID available)
Behavior suggests routing is not triggered or is overridden after auth state change
After refresh, routing works correctly → indicates delayed or blocked state sync

Image Image

Environment

Environment

Platform: Web (issue occurs in Test Mode and in deployed version)
Browsers tested: multiple (including incognito)
Same behavior across all environments

Additional Information

No response

Metadata

Metadata

Assignees

Labels

status: can't reproduceFollowing the reported steps did not reproduce the bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions