In the Firebase Admin SDK, we can apply custom claims using the setCustomUserClaims() method, which comes built-in with Firebase:
admin.auth().setCustomUserClaims(uid, {admin: true}).then(() => {
});
In the Firebase Admin SDK, we can apply custom claims using the setCustomUserClaims() method, which comes built-in with Firebase:
admin.auth().setCustomUserClaims(uid, {admin: true}).then(() => {
});