A structure containing a User, the OperationType, and the provider ID.
operationType
could be OperationType.SIGN_IN for a sign-in operation, OperationType.LINK for a linking operation and OperationType.REAUTHENTICATE for a reauthentication operation.
Signature:
export interface UserCredential
Properties
Property | Type | Description |
---|---|---|
operationType | (typeof OperationTypeMap)[keyof typeof OperationTypeMap] | 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. |
UserCredential.operationType
The type of operation which was used to authenticate the user (such as sign-in or link).
Signature:
operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
UserCredential.providerId
The provider which was used to authenticate the user.
Signature:
providerId: string | null;
UserCredential.user
The user authenticated by this credential.
Signature:
user: User;