enroll method

Future<void> enroll(
  1. MultiFactorAssertion assertion, {
  2. String? displayName,
})

Enrolls a second factor as identified by the MultiFactorAssertion parameter for the current user.

displayName can be used to provide a display name for the second factor.

Implementation

Future<void> enroll(
  MultiFactorAssertion assertion, {
  String? displayName,
}) async {
  return _delegate.enroll(assertion._delegate, displayName: displayName);
}