跳转到内容

WilddogAuthProvider

提供Auth身份验证类型。

定义

public static final String PROVIDER_ID

说明

登录方式的 ID。例如: “qq”



定义

public static AuthCredential getEmailCredential (String email, String password)

说明

返回一个带有邮箱和密码的用户凭证,当调用signInWithCredential(AuthCredential)或者linkWithCredential(AuthCredential)时候使用。

参数

参数名 描述
email 要创建EmailAuthCredential的邮箱地址。
password 要创建EmailAuthCredential的密码。

返回值

AuthCredential 对象。



定义

public static AuthCredential getPhoneCredential (String phone, String password)

说明

返回一个带有手机号和密码的用户凭证,当调用signInWithCredential(AuthCredential)或者linkWithCredential(AuthCredential)时候使用。

参数

参数名 描述
phone 要创建PhoneAuthCredential的手机号码。
password 要创建PhoneAuthCredential的密码。

返回值

AuthCredential 对象。