How to sync custom claim token using Firebase Auth
I want to make Firestore's rule using Firebase custom token like this. match /post/{postId}{ allow create: if request.auth.token[role] == `admin`; allow read: if request.auth.token[role] == `admin`; } When a user sign up an app, I want to give her its…