FirebaseAuth Framework Reference

MultiFactorResolver

class MultiFactorResolver : NSObject

The data structure used to help developers resolve 2nd factor requirements on users that have opted in to 2 factor authentication. This class is available on iOS only.

  • The opaque session identifier for the current sign-in flow.

    Declaration

    Swift

    var session: MultiFactorSession { get }
  • The list of hints for the second factors needed to complete the sign-in for the current session.

    Declaration

    Swift

    var hints: [MultiFactorInfo] { get }
  • The Auth reference for the current FIRMultiResolver.

    Declaration

    Swift

    var auth: Auth { get }
  • A helper function to help users complete sign in with a second factor using an FIRMultiFactorAssertion confirming the user successfully completed the second factor challenge.

    Declaration

    Swift

    func resolveSignIn(with assertion: MultiFactorAssertion) async throws -> FIRAuthDataResult

    Parameters

    completion

    The block invoked when the request is complete, or fails.