问题
Describe the bug
I using request.auth.token.firebase.identities["phone"] != null
to make sure number is verified.Android are works fine (immediately update) but on IOS after user verified their phone number I need to wait like half hour for update.
To Reproduce
Steps to reproduce the behavior:
1. Put request.auth.token.firebase.identities["phone"] != null
in rules
2. Do verify phone number on IOS
Expected behavior (Android is work as I expected)
I expected that once the phone verified i can immediate using request.auth.token.firebase.identities["phone"] != null
to make sure phone is verified.
Additional context
I don't know which part when wrong it's bug or it's api difference between two platform.
Other like request.auth.token.firebase.identities["facebook.com"]
or request.auth.token.firebase.identities["google.com"]
all work fine.
only request.auth.token.firebase.identities["phone"]
didn't work on IOS.
来源:https://stackoverflow.com/questions/59590938/firestore-rules-request-auth-token-firebase-identitiesphone-not-update-on-io