getAssertionForSignIn static method

Future<MultiFactorAssertion> getAssertionForSignIn(
  1. String enrollmentId,
  2. String oneTimePassword
)

Get a MultiFactorAssertion which can be used to confirm ownership of a TOTP second factor.

Implementation

static Future<MultiFactorAssertion> getAssertionForSignIn(
  String enrollmentId,
  String oneTimePassword,
) async {
  final assertion =
      await TotpMultiFactorGeneratorPlatform.instance.getAssertionForSignIn(
    enrollmentId,
    oneTimePassword,
  );

  return MultiFactorAssertion._(assertion);
}