简体   繁体   English

Firebase IOS-使用电话号码创建用户

[英]Firebase IOS - Create user with phone number

I am using firebase in a current project and I understand that there is a method in Firebase called createUser(email, password). 我在当前项目中使用firebase,并且我了解Firebase中有一个名为createUser(email,password)的方法。 However, I was wondering if there was a way to sign up users and create users using only their phone number with firebase? 但是,我想知道是否有一种方法可以注册用户并仅使用带Firebase的电话号码来创建用户? I know that firebase supports phone number sign in, but does it support phone number sign up? 我知道Firebase支持电话号码登录,但是它支持电话号码注册吗?

All of the authentication providers supported by Firebase Authentication can be used for initial sign up, and also signing in after that. Firebase身份验证支持的所有身份验证提供程序都可以用于初始注册,也可以在此之后登录。 This includes phone numbers. 这包括电话号码。

Once you sign in with authentication providers supported by Firebase, authenticated user is automatically signed up. 使用Firebase支持的身份验证提供程序登录后,将自动注册经过身份验证的用户。 That is, sign in function act as Sign up function when used first. 即,登录功能在首次使用时充当登录功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM