docs-devsite/auth.usercredential.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
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.
<b>Signature:</b>
export interface UserCredential
| 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. |
The type of operation which was used to authenticate the user (such as sign-in or link).
<b>Signature:</b>
operationType: (typeof OperationTypeMap)[keyof typeof OperationTypeMap];
The provider which was used to authenticate the user.
<b>Signature:</b>
providerId: string | null;
The user authenticated by this credential.
<b>Signature:</b>
user: User;