The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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.