Firestore security rules - allow if user creates his account using phone number

Viewed 90

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.

1 Answers

You are doing it wrong correct syntax will be:

request.auth.token.firebase.sign_in_provider == "phone";
Related