resendVerificationCode static method

Future<String> resendVerificationCode(
  1. String email
)

Optional helper: resend new OTP after deleting the old one

Implementation

static Future<String> resendVerificationCode(String email) async {
  await QueryBuilder(table: 'email_verification_tokens')
      .where('email', '=', email)
      .delete();
  return generateNumericVerificationCode(email);
}