Reputation: 971
I want firebase security rules to allow if user creates his account using phone number. I try to using
request.auth.token.phone_number
But not working.
Upvotes: 2
Views: 130
Reputation: 1256
You are doing it wrong correct syntax will be:
request.auth.token.firebase.sign_in_provider == "phone";
Upvotes: 4