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

MultiFactorUser interface

An interface that defines the multi-factor related properties and operations pertaining to a User.

Signature:

export interface MultiFactorUser 

Properties

Property Type Description
enrolledFactors MultiFactorInfo[] Returns a list of the user's enrolled second factors.

Methods

Method Description
enroll(assertion, displayName) Enrolls a second factor as identified by the MultiFactorAssertion for the user.
getSession() Returns the session identifier for a second factor enrollment operation. This is used to identify the user trying to enroll a second factor.
unenroll(option) Unenrolls the specified second factor.