Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-27 UTC."],[],[],null,["# UserCredential interface\n\nA structure containing a [User](./auth.user.md#user_interface), the [OperationType](./auth.md#operationtype), and the provider ID.\n\n`operationType` could be [OperationType](./auth.md#operationtype).SIGN_IN for a sign-in operation, [OperationType](./auth.md#operationtype).LINK for a linking operation and [OperationType](./auth.md#operationtype).REAUTHENTICATE for a reauthentication operation.\n\n**Signature:** \n\n export interface UserCredential \n\nProperties\n----------\n\n| Property | Type | Description |\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [operationType](./auth.usercredential.md#usercredentialoperationtype) | (typeof [OperationTypeMap](./auth.md#operationtype))\\[keyof typeof [OperationTypeMap](./auth.md#operationtype)\\] | The type of operation which was used to authenticate the user (such as sign-in or link). |\n| [providerId](./auth.usercredential.md#usercredentialproviderid) | string \\| null | The provider which was used to authenticate the user. |\n| [user](./auth.usercredential.md#usercredentialuser) | [User](./auth.user.md#user_interface) | The user authenticated by this credential. |\n\nUserCredential.operationType\n----------------------------\n\nThe type of operation which was used to authenticate the user (such as sign-in or link).\n\n**Signature:** \n\n operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];\n\nUserCredential.providerId\n-------------------------\n\nThe provider which was used to authenticate the user.\n\n**Signature:** \n\n providerId: string | null;\n\nUserCredential.user\n-------------------\n\nThe user authenticated by this credential.\n\n**Signature:** \n\n user: User;"]]