Skip to content

Firebase Auth Custom-Claims Editor

License

Notifications You must be signed in to change notification settings

Miguel-Dorta/facce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

facce

Firebase Auth Custom-Claims Editor.

facce is a CLI tool for editing the custom claims of the Firebase Auth users.

How to use it

Prerequisites

You need to download a file with the credentials for your project. You can do it by clicking here or going to Firebase Console > Settings > Service Accounts.

Download and unzip the binary

You can do it by clicking here.

Example commands

# Print all the custom claims of the user
./facce get -c credentials-file.json --uid 0123456789abcdefghijklmnopqr

# Print the field "setting" of the object "example"
./facce get example.setting -c credentials-file.json --uid 0123456789abcdefghijklmnopqr

# Set a field "admin" to true
./facce set admin=true -c credentials-file.json --uid 0123456789abcdefghijklmnopqr

# Remove the field "role"
./facce unset role -c credentials-file.json --uid 0123456789abcdefghijklmnopqr