Script to add an admin Firebase Custom Claim and view those.
- Node v16 or later (check version using
node -v
)
- Install initial dependencies using
npm i
- 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)
- Put the firebase.json file in the root folder
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>
.
├─ *.js # Source Files
├─ firebase.json # Your firebase.json file
└─ README.md # This file :)