Real Tech Hacks
Real Tech Hacks

Reputation: 367

How to add firebase custom claims without admin SDK?

I am developing a Android app with firebase as backend. I heard about firebase admin SDK but I don't know how to create it. I am using firebase console in web interface. Now how can I set customer claims for a user?

Upvotes: 0

Views: 729

Answers (1)

Dharmaraj
Dharmaraj

Reputation: 50850

You cannot. You could add custom claims from your local computer instead of Cloud functions or run a node process locally if you just need to add claims for a few users but the Admin SDK is necessary.

Checkout Firebase Custom Claims without Cloud Functions for detailed explanation on setting up admin sdk locally. You could just locally run functions or a node process to add claims as mentioned in there.

Upvotes: 2

Related Questions