confirmEmail method

Future<Result<void, Exception>> confirmEmail(
  1. String email,
  2. String code
)

Implementation

Future<Result<void, Exception>> confirmEmail(String email, String code) async {
  final result = await _flutterAuthApi.confirmEmail(_appName, email, code);

  if (result.isSuccess != true) {
    return Result.failure(Exception(result.error));
  }
  return Result.success({});
}