Skip to content

[firebase_auth]: Crash when returning to the app after authorized with X #17372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
AlexV525 opened this issue May 20, 2025 · 2 comments
Open
1 task done
Labels
Needs Attention This issue needs maintainer attention. platform: ios Issues / PRs which are specifically for iOS. plugin: auth type: bug Something isn't working

Comments

@AlexV525
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

iOS

Description

A user has reported that the app has crashed several times when returning to it after being authorized with X in the web tab. The unstable network condition could be somehow affected because the user has reported that a VPN is being used during the process.

Reproducing the issue

  1. Start the authentication flow with the TwitterAuthProvider.
  2. Authorized, and returning the app.
  3. After a few seconds, the app crashes.

The pseudo code I was calling:

Future<void> _startAuth() async {
  final provider = TwitterAuthProvider();
  provider.setCustomParameters({
    'scopes': 'users.read offline.access',
    'lang': 'en',
  });
  final credential = await _$.signInWithProvider(provider);
  final idToken = await credential.user?.getIdToken();
  if (idToken == null) {
    return;
  }
  // Making HTTP requests with `idToken`.
}

Firebase Core version

3.13.0

Flutter Version

3.27.4

Relevant Log Output

See the attached crash log.

Flutter dependencies

Expand Flutter dependencies snippet
dependencies:
- firebase_auth 5.5.2
- firebase_core 3.13.0

transitive dependencies:
- firebase_auth_platform_interface 7.6.2
- firebase_core_platform_interface 5.4.0

Additional context and comments

Detailed information can be found in the log file.

Hardware Model: iPhone 14 (iPhone14,7)
OS Version: iPhone OS 16.7 (20H19)

crashlog_for_github.log

Searched related issues:

@AlexV525 AlexV525 added type: bug Something isn't working Needs Attention This issue needs maintainer attention. labels May 20, 2025
@SelaseKay SelaseKay added plugin: auth platform: ios Issues / PRs which are specifically for iOS. labels May 21, 2025
@MichaelVerdon
Copy link
Contributor

Hey there, are you able to reliably reproduce this? If so, would you be able to send a full MRE over for further investigation?

@MichaelVerdon MichaelVerdon added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels May 21, 2025
@AlexV525
Copy link
Author

Hey there, are you able to reliably reproduce this?

Not from my side but the client said it happens 1/10~2/10.

would you be able to send a full MRE over for further investigation?

You mean my development environment? macOS 15.3.2, Xcode 16.2, iOS deployment target 15.5.

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Attention This issue needs maintainer attention. platform: ios Issues / PRs which are specifically for iOS. plugin: auth type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants