Skip to content

Configure admin service account from environment variable #1297

Closed
@SamGeens

Description

@SamGeens

What problem is this solving

Currently the environment variable needs to be configured be adding the file name of the service account. This obligates the developer to store those secret credentials in code. Being able to configure the admin setting from string (or environment variable) would solve this.

Proposed solution

Allow the following configuration:

admin: { serviceAccount: JSON.parse(process.env.FIREBASE_SERVICE_ACCOUNT), },

Describe alternatives you've considered

Adding the admin module directly within the Firebase configuration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions