Adding custom claim with Admin SDK

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(() => {
});
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset