Ethan
Ethan

Reputation: 31

Firebase Custom Claims IOS and swift

I have been reading the Firebase documents but haven't been successful in figuring out how to set custom claims in Xcode/Swift. There is no documentation for this, the only documented languages are python, Node.JS, java, Go and C#. If you know how to set custom claims in Swift, your knowledge would be very much appreciated!!

Thanks in advance

Upvotes: 1

Views: 231

Answers (2)

Parth
Parth

Reputation: 636

read this -> Click here

Custom claims can only be set from the Admin SDK.

Upvotes: 0

Frank van Puffelen
Frank van Puffelen

Reputation: 599341

Custom claims can only be set from the Admin SDKs, which are designed to be run in trusted environment such as your development machine, a server you control, or Cloud Functions. There is no way to set custom claims from (client-side code or otherwise) Swift code.

Upvotes: 1

Related Questions