Custom Claims is a Firebase Authentication feature that enables you to set access-control flags on your user JWTs. This requires a little explanation... but it's a critical part of building a secure Firebase app, so don't miss it!
Custom Claims docs:
https://firebase.google.com/docs/auth...
Sample Cloud Function to manage Custom Claims:
https://github.com/deltaepsilon/fireb...