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 > AuthCredential

AuthCredential class

Interface that represents the credentials returned by an AuthProvider.

Signature:

export declare class AuthCredential 

Description

Implementations specify the details about each auth provider's credential requirements.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the AuthCredential class.

Properties

Property Modifiers Type Description
providerId string The authentication provider ID for the credential.
signInMethod string The authentication sign in method for the credential.

Methods

Method Modifiers Description
toJSON() Returns a JSON-serializable representation of this object.