getAssertionForEnrollment static method

Future<MultiFactorAssertion> getAssertionForEnrollment(
  1. TotpSecret secret,
  2. String oneTimePassword
)

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

Implementation

static Future<MultiFactorAssertion> getAssertionForEnrollment(
  TotpSecret secret,
  String oneTimePassword,
) async {
  final assertion = await TotpMultiFactorGeneratorPlatform.instance
      .getAssertionForEnrollment(
    secret._instance,
    oneTimePassword,
  );

  return MultiFactorAssertion._(assertion);
}