Home > @firebase/auth > UserCredential
UserCredential interface
A structure containing a User, an AuthCredential, the OperationType, and any additional user information that was returned from the identity provider.
Signature:
export interface UserCredential
Description
operationType
could be OperationType.SIGN_IN for a sign-in operation, OperationType.LINK for a linking operation and OperationType.REAUTHENTICATE for a reauthentication operation.
Properties
Property | Type | Description |
---|---|---|
operationType | OperationType | The type of operation which was used to authenticate the user (such as sign-in or link). |
providerId | string | null | The provider which was used to authenticate the user. |
user | User | The user authenticated by this credential. |