sendVerificationEmail method
Send verification email
Implementation
Future<Map<String, dynamic>> sendVerificationEmail({
required String email,
}) async {
try {
print('📧 AuthService.sendVerificationEmail called');
final response = await _apiClient.post<Map<String, dynamic>>(
'/api/v1/auth/send-verification-email',
data: {
'email': email,
},
);
print('✅ AuthService.sendVerificationEmail response received');
return response;
} on ProdobitException {
rethrow;
} catch (e) {
print('❌ AuthService.sendVerificationEmail error: $e');
throw AuthException(
'Failed to send verification email: $e',
code: 'SEND_VERIFICATION_ERROR',
);
}
}