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 |
abstract @NonNull List<MultiFactorInfo> |
getHints()Returns a list of |
abstract @NonNull MultiFactorSession |
Returns a |
abstract @NonNull Task<AuthResult> |
resolveSignIn(@NonNull MultiFactorAssertion multiFactorAssertion)Completes sign in with a second factor using an |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited methods |
||||
|---|---|---|---|---|
|
Public constructors
Public methods
getFirebaseAuth
public abstract @NonNull FirebaseAuth getFirebaseAuth()
Returns the FirebaseAuth reference for the current MultiFactorResolver.
getHints
public abstract @NonNull List<MultiFactorInfo> getHints()
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<AuthResult> resolveSignIn(@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.