Enforce custom rules for passwords for Firebase Auth accounts

一世执手 提交于 2019-12-07 21:52:42

问题


Is there any way that I could set custom rules for passwords when a user create an account? It seems like firebase doesn't provide a way to edit the password rules. I know I can set password rules on front end, but just like Frank van Puffelen mentioned, this method can be bypassed by directly calling the API. Is is possible to write some cloud function to handle account-creation request, and reject the request if the password is invalid?


回答1:


Sure, you can write a Cloud Function to create email/password accounts. You'll need to use the Admin SDK to get a hold of user management APIs.



来源:https://stackoverflow.com/questions/47897741/enforce-custom-rules-for-passwords-for-firebase-auth-accounts

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