Skip to content

Initialiaze from FIREBASE_CONFIG environment variable #254

Closed
@pantos27

Description

@pantos27

Can you give an example of the data that should be in the FIREBASE_CONFIG environment variable when calling initializeApp
I see that there should be an object in the 'credential' property
But it also checks for a method called 'getAccessToken'

firebase-app.js:203

if (typeof credential !== 'object' || credential === null || typeof credential.getAccessToken !== 'function') {
            throw new error_1.FirebaseAppError(error_1.AppErrorCodes.INVALID_APP_OPTIONS, "Invalid Firebase app options passed as the first argument to initializeApp() for the " +
                ("app named \"" + this.name_ + "\". The \"credential\" property must be an object which implements ") +
                "the Credential interface.");
        }

How can I create this method through the environment variable string?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions