WilddogAuthProvider
提供Auth身份验证类型。
PROVIDER_ID
Section titled “PROVIDER_ID”定义
public static final String PROVIDER_ID说明
登录方式的 ID。例如: “qq”
getEmailCredential(email,password)
Section titled “getEmailCredential(email,password)”定义
public static AuthCredential getEmailCredential (String email, String password)说明
返回一个带有邮箱和密码的用户凭证,当调用signInWithCredential(AuthCredential)或者linkWithCredential(AuthCredential)时候使用。
参数
| 参数名 | 描述 |
|---|---|
| 要创建EmailAuthCredential的邮箱地址。 | |
| password | 要创建EmailAuthCredential的密码。 |
返回值
AuthCredential 对象。
getPhoneCredential(phone,password)
Section titled “getPhoneCredential(phone,password)”定义
public static AuthCredential getPhoneCredential (String phone, String password)说明
返回一个带有手机号和密码的用户凭证,当调用signInWithCredential(AuthCredential)或者linkWithCredential(AuthCredential)时候使用。
参数
| 参数名 | 描述 |
|---|---|
| phone | 要创建PhoneAuthCredential的手机号码。 |
| password | 要创建PhoneAuthCredential的密码。 |
返回值
AuthCredential 对象。