Skip to content

fix: use secondary app if it is passed into FirebaseAuthUI#2313

Open
russellwheatley wants to merge 4 commits intoversion-10.0.0-beta03from
use-secondary-app
Open

fix: use secondary app if it is passed into FirebaseAuthUI#2313
russellwheatley wants to merge 4 commits intoversion-10.0.0-beta03from
use-secondary-app

Conversation

@russellwheatley
Copy link
Copy Markdown
Member

@russellwheatley russellwheatley commented Apr 1, 2026

closes #2312

@russellwheatley russellwheatley changed the base branch from master to version-10.0.0-beta03 April 1, 2026 13:00
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enables FirebaseAuthActivity to support secondary Firebase Auth instances by passing the authUI object via a static cache. While this correctly handles multi-app scenarios, the implementation of cache retrieval using remove() in onCreate is problematic as it prevents the activity from surviving configuration changes like screen rotations. Furthermore, the static caches for configurations and auth instances introduce potential memory leaks and test isolation issues that should be addressed by implementing a proper cleanup mechanism.

@russellwheatley russellwheatley marked this pull request as ready for review April 1, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant