Skip to content

Script to add an admin Firebase Custom Claim and view those.

Notifications You must be signed in to change notification settings

Venture-Capitol/custom-claim-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script to add an admin Firebase Custom Claim and view those.

Installing & Running

Prerequisites:

  • Node v16 or later (check version using node -v)

Installation:

  1. Install initial dependencies using npm i
  2. To get this script working, you'll need a firebase service account key. You can either get it yourself following this guide if you have access to the firebase project, or ask in slack for it (It can be the same file you use in the vc-backend or vc-utr-backend)
  3. Put the firebase.json file in the root folder

Running:

You can set an admin Firebase Custom Claim using node add-admin <users-uid-here> and can view that admin Custom Claim using node view-claim <users-uid-here>

Folder Structure

.
├─ *.js             # Source Files
├─ firebase.json    # Your firebase.json file
└─ README.md        # This file :)

About

Script to add an admin Firebase Custom Claim and view those.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published