Add email to resend audience using database function
Hello, I am trying to basically add an email address to my resend audience every single time after a user creates an account.
The way I am trying to make this work is with my handle_new_user function by adding something that would call my supabase edge functionthat would add the email.
Here is the code I am using for that
I enabled pg_net in the extensions tab (see image)
Basically the user is getting added to the auth fine, but the supabase edge function is not getting called which is making me think there is an issue without how I am using the function and using pg_net/calling the edge function.
The way I am trying to make this work is with my handle_new_user function by adding something that would call my supabase edge functionthat would add the email.
Here is the code I am using for that
I enabled pg_net in the extensions tab (see image)
Basically the user is getting added to the auth fine, but the supabase edge function is not getting called which is making me think there is an issue without how I am using the function and using pg_net/calling the edge function.