Utility class that contains methods to resolve second factor requirements on users that have opted into two-factor authentication.
Inherited Constant Summary
Public Constructor Summary
Public Method Summary
abstract FirebaseAuth |
getFirebaseAuth()
Returns the
FirebaseAuth
reference for the current MultiFactorResolver.
|
abstract 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.
|
abstract MultiFactorSession |
getSession()
Returns a
MultiFactorSession ,
an opaque session identifier for the current sign-in flow.
|
abstract Task<AuthResult> |
resolveSignIn(MultiFactorAssertion
multiFactorAssertion)
Completes sign in with a second factor using an
MultiFactorAssertion
which confirms that the user has successfully completed the second factor
challenge.
|
Inherited Method Summary
Public Constructors
public MultiFactorResolver ()
Public Methods
public abstract FirebaseAuth getFirebaseAuth ()
Returns the FirebaseAuth
reference for the current MultiFactorResolver.
public abstract 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.
public abstract 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.
public abstract Task<AuthResult> resolveSignIn (MultiFactorAssertion multiFactorAssertion)
Completes sign in with a second factor using an MultiFactorAssertion
which confirms that the user has successfully completed the second factor
challenge.