MultiFactorResolver

public abstract class MultiFactorResolver implements Parcelable


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 @NonNull FirebaseAuth

Returns the FirebaseAuth reference for the current MultiFactorResolver.

abstract @NonNull List<MultiFactorInfo>

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

abstract @NonNull MultiFactorSession

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

abstract @NonNull Task<AuthResult>

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

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

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

Public constructors

MultiFactorResolver

public MultiFactorResolver()

Public methods

getFirebaseAuth

public abstract @NonNull FirebaseAuth getFirebaseAuth()

Returns the FirebaseAuth reference for the current MultiFactorResolver.

getHints

public abstract @NonNull List<MultiFactorInfogetHints()

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

getSession

public abstract @NonNull MultiFactorSession getSession()

Returns a MultiFactorSession, 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 @NonNull Task<AuthResultresolveSignIn(@NonNull MultiFactorAssertion multiFactorAssertion)

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