[firebase_auth]: Auth persistence not working as expected on Flutter web in Safari. #13536
Open
1 task done
Labels
Needs Attention
This issue needs maintainer attention.
platform: web
Issues / PRs which are specifically for web.
plugin: auth
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
No response
Description
I am posting this issue as it may be related to how Firebase Auth interacts with Safari’s session or local storage mechanisms, which appear to behave differently from other browsers. Testing with a simple Flutter web app using Firebase Auth (Phone Number Auth), I have encountered an issue specific to Safari regarding user session persistence. While the app correctly maintains the user’s session across page refreshes in Chrome and Firefox, Safari signs the user out upon refresh.
I have also tested this behavior using both a static local development port and a Firebase Hosting deployment, to rule out any local environment-related issues. The problem persists in both environments, which suggests it is not related to local hosting or configuration.
Observed behaviour
Simple Test App
Flutter Doctor
Reproducing the issue
Firebase Core version
3.6.0
Flutter Version
stable, 3.24.3, on macOS 15.0.1 24A348
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
The text was updated successfully, but these errors were encountered: