MultiFactorResolver

abstract classMultiFactorResolver :Parcelable


Utility class that contains methods to resolve second factor requirements on users that have opted into two-factor authentication.

Summary

Public constructors

Public functions

abstractFirebaseAuth

Returns theFirebaseAuth reference for the current MultiFactorResolver.

abstract (Mutable)List<MultiFactorInfo!>

Returns a list ofMultiFactorInfo which represents the available second factors that can be used to complete the sign-in for the current session.

abstractMultiFactorSession

Returns aMultiFactorSession, an opaque session identifier for the current sign-in flow.

abstractTask<AuthResult!>
resolveSignIn(multiFactorAssertion: MultiFactorAssertion)

Completes sign in with a second factor using anMultiFactorAssertion which confirms that the user has successfully completed the second factor challenge.

Inherited functions

Fromandroid.os.Parcelable
abstractInt
abstractUnit
writeToParcel(p: Parcel!, p1: Int)

Public constructors

MultiFactorResolver

MultiFactorResolver()

Public functions

getFirebaseAuth

abstract fun getFirebaseAuth(): FirebaseAuth

Returns theFirebaseAuth reference for the current MultiFactorResolver.

getHints

abstract fun getHints(): (Mutable)List<MultiFactorInfo!>

Returns a list ofMultiFactorInfo which represents the available second factors that can be used to complete the sign-in for the current session.

getSession

abstract fun getSession(): MultiFactorSession

Returns aMultiFactorSession, an opaque session identifier for the current sign-in flow.

This is needed to be provided with the second factor. It will provide context to the Auth backend on the first factor user to sign-in.

resolveSignIn

abstract fun resolveSignIn(multiFactorAssertion: MultiFactorAssertion): Task<AuthResult!>

Completes sign in with a second factor using anMultiFactorAssertion which confirms that the user has successfully completed the second factor challenge.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.