MultiFactorResolver
abstract class MultiFactorResolver : 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 |
|
---|---|
abstract FirebaseAuth |
Returns the |
abstract (Mutable)List<MultiFactorInfo!> |
getHints() Returns a list of |
abstract MultiFactorSession |
Returns a |
abstract Task<AuthResult!> |
resolveSignIn(multiFactorAssertion: MultiFactorAssertion) Completes sign in with a second factor using an |
Inherited functions |
||||
---|---|---|---|---|
|
Public constructors
Public functions
getFirebaseAuth
abstract fun getFirebaseAuth(): FirebaseAuth
Returns the FirebaseAuth
reference for the current MultiFactorResolver.
getHints
abstract fun getHints(): (Mutable)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.
getSession
abstract fun getSession(): MultiFactorSession
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
abstract fun resolveSignIn(multiFactorAssertion: MultiFactorAssertion): Task<AuthResult!>
Completes sign in with a second factor using an MultiFactorAssertion
which confirms that the user has successfully completed the second factor challenge.