firestore rules request.auth.token.firebase.identities[“phone”] not update on IOS

五迷三道 提交于 2020-02-06 08:38:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!