mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 22:11:13 -05:00
Fix: Implement Phase 1 and 2 for Account & Profile tab
This commit is contained in:
@@ -8,11 +8,11 @@ interface EmailValidationResult {
|
||||
|
||||
/**
|
||||
* Validates an email address against disposable email domains
|
||||
* Uses the validate-email edge function to check the backend blocklist
|
||||
* Uses the validate-email-backend edge function for server-side validation
|
||||
*/
|
||||
export async function validateEmailNotDisposable(email: string): Promise<EmailValidationResult> {
|
||||
try {
|
||||
const { data, error } = await supabase.functions.invoke('validate-email', {
|
||||
const { data, error } = await supabase.functions.invoke('validate-email-backend', {
|
||||
body: { email }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user