MultiFactorResolver

public abstract classMultiFactorResolver implementsParcelable


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

Summary

Public constructors

Public methods

abstract @NonNullFirebaseAuth

Returns theFirebaseAuth reference for the current MultiFactorResolver.

abstract @NonNullList<MultiFactorInfo>

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

abstract @NonNullMultiFactorSession

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

abstract @NonNullTask<AuthResult>

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

Inherited Constants

Fromandroid.os.Parcelable
static final int
static final int

Inherited methods

Fromandroid.os.Parcelable
abstract int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

MultiFactorResolver

public MultiFactorResolver()

Public methods

getFirebaseAuth

public abstract @NonNullFirebaseAuth getFirebaseAuth()

Returns theFirebaseAuth reference for the current MultiFactorResolver.

getHints

public abstract @NonNullList<MultiFactorInfogetHints()

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

getSession

public abstract @NonNullMultiFactorSession getSession()

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

public abstract @NonNullTask<AuthResultresolveSignIn(@NonNullMultiFactorAssertion multiFactorAssertion)

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.