Hi I have to tell you that custom claims are always created from the backend and never from the client therefore you should use firebase sdk in .net, node js or from cloud functions. Once done, you need to update the token on the client from the server. In the client you get the token and read the custom claims.
More info:
Server SDK .Net (non mobile)
https://github.com/firebase/firebase-admin-dotnet
https://firebase.google.com/docs/auth/admin/custom-claims
Cloud Function:
https://stackoverflow.com/questions/55360425/adding-a-custom-claim-to-the-oncreate-user-firebase-cloud-function
I am developing an application with firebase and I have it working like this, backend in the cloud (google) with node js and on the server with .net with Firebase admin SDK. You can choose the option that best suits your project, in my case both are necessary.