UserCredential interface

包含用户的结构,操作类型,以及提供商 ID。

operationType可以是操作类型.SIGN_IN 表示登录操作, OperationType .LINK 用于链接操作和操作类型.REAUTHENTICATE 用于重新验证操作。

签名:

export interface UserCredential 

特性

财产类型描述
操作类型操作类型映射的类型)[ OperationTypeMap类型的键]用于验证用户身份的操作类型(例如登录或链接)。
提供者ID字符串|无效的用于验证用户身份的提供者。
用户用户用户通过此凭证进行身份验证。

用户凭证.操作类型

用于验证用户身份的操作类型(例如登录或链接)。

签名:

operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];

UserCredential.providerId

用于验证用户身份的提供者。

签名:

providerId: string | null;

用户凭证.user

用户通过此凭证进行身份验证。

签名:

user: User;