Skip to content

[Auth-UI] [v10.0.0-beta02] FirebaseAuthUI is not initialized with the proper FirebaseApp keyΒ #2312

Description

@nerocristallo

I am updating the library from version 8.x.x to version 10.x.x and have encountered the following problem:

My current implementation uses a specific Firebase app for authentication and another app for all other services.

With version 8.x.x, this was not an issue since I could pass the Firebase app when the app retrieved the FirebaseAuthUI instance.

        FirebaseOptions options = new FirebaseOptions.Builder()
                .setProjectId("myauthapp-api")
                .setApplicationId("**************")
                .setApiKey("************")
                .build();
        FirebaseApp.initializeApp(applicationContext, options, "authOnly");

        FirebaseAuthUI.getInstance(FirebaseApp.getInstance("authOnly"));

The other Firebase functionality was configured using the classic google-services.json file.

Unfortunately, it seems that version 10.x.x behaves differently, and the app key configured using the JSON files overrides the app key passed as a parameter when the app retrieves the FirebaseAuthUI instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions