verifyShopifyEmail method

Future<Result<Map<String, dynamic>>> verifyShopifyEmail(
  1. String email,
  2. String otp
)

Verify the Shopify email OTP otp for email.

Returns a Result containing the user data on success.

Implementation

Future<Result<Map<String, dynamic>>> verifyShopifyEmail(
  String email,
  String otp,
) async {
  try {
    final data = await ShopifyService.shopifyVerifyEmail(email, otp);
    return Success(data);
  } catch (err) {
    rethrow;
  }
}