New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

firebase-roles

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-roles

Firebase roles (claims) manipulation in the backend.

latest
Source
npmnpm
Version
1.5.1
Version published
Maintainers
1
Created
Source

firebase-roles

Firebase roles (claims) manipulation in the backend.

Users with the 'admin' claim can read all user claims and update them.

Use in conjunction with the firebase-roles-editor package in the frontend.

Usage

Ensure initializeApp is called on your firebase admin instance before anything else.

In your index.js:

const {endpoints} = require("firebase-roles");

Endpoints are returned in cranny syntax which looks like:

{
    type: 'get',
    route: '/endpointName',
    obj: Func
}

The obj is a function which you should set to run when the endpoint is hit. For example, with express:

  for (const endpoint of endpoints) {
    app[endpoint.type](endpoint.route, endpoint.obj);
  }

Updating IAM for app engine access.

Find the item named "App Engine default service account" in IAM settings in Google Cloud. Add "Secret Manager Secret Accessor" role to it.

Keywords

firebase

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts