resendVerificationEmail method

Future<Map<String, dynamic>> resendVerificationEmail(
  1. String email, {
  2. bool testMode = false,
})

Resend verification email

Implementation

Future<Map<String, dynamic>> resendVerificationEmail(String email, {bool testMode = false}) async {
  try {
    OnairosDebugHelper.log('📧 Resending verification email for: $email');

    // Use the same request logic as initial request
    return await requestEmailVerification(email, testMode: testMode);

  } catch (e) {
    OnairosDebugHelper.log('❌ Error resending verification email: $e');
    return {
      'success': false,
      'message': 'Failed to resend verification email. Please try again.',
      'error': e.toString(),
    };
  }
}