Home > database >  Firebase Custom Claims IOS and swift
Firebase Custom Claims IOS and swift

Time:11-22

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

CodePudding user response:

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.

CodePudding user response:

read this -> Click here

Custom claims can only be set from the Admin SDK.

  • Related