Resend confirmation email not working

I want to create a flow where the user signs in and I send them an email to confirm their email.

I disabled the "Confirm Email" option on the email provider in Supabase Auth UI.

When it is enabled, new users automatically get an email from Sendgrid, which I set up.

However, in this new flow, the email is never sent.

const { data, error } = await supabase.auth.resend({ email: user.email, type: "signup" });
      this.logger.logWithParams("Sent email confirmation", { data, error});


This prints
{
    "data": {
        "user": null,
        "session": null
    },
    "error": null
}


Am I missing a step or doing something incorrectly? I followed the docs here
Was this page helpful?