Hello guys! Is the email confirmation still having...
# help
s
Hello guys! Is the email confirmation still having issues? I'm having problems with my project regarding the emails, the confirmation email doesn't seem to reach destination, but the other options are sending (example: recover password email).
n
Hello @Sun Ce! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
Sort of basic, but do you have "enable email confirmations" on in auth settings? Is the user being created in the auth.users table?
n
Basara Toujou (2022-05-30)
s
Yes, the user creates successfully in the auth table, and it has the state of "waiting for confirmation", but the email never reaches destination
g
Besides the auth settings page I believe the only other setting would be the template itself, but don’t know if a badly formed template could cause it not to send. Any error in the database postgres logs? Do you have a trigger function on the auth.users table?
s
Not at all, the request finishes successfully with a HTTP 200 at /auth/v1/admin/users and a HTTP 201 at /rest/v1/users
auth/v1/admin/users response
Copy code
{
  "headers": [
    {
      "cf_cache_status": "DYNAMIC",
      "cf_ray": "713ad345f26358cc-IAD",
      "content_length": null,
      "content_location": null,
      "content_range": null,
      "content_type": "application/json",
      "date": "Mon, 30 May 2022 22:14:53 GMT",
      "transfer_encoding": "chunked",
      "x_kong_proxy_latency": "0",
      "x_kong_upstream_latency": "88"
    }
  ],
  "origin_time": 215,
  "status_code": 200
}
and rest/v1/users response
Copy code
{
  "headers": [
    {
      "cf_cache_status": "DYNAMIC",
      "cf_ray": "713ad346e2d28f28-IAD",
      "content_length": null,
      "content_location": null,
      "content_range": "*/*",
      "content_type": "application/vnd.pgrst.object+json; charset=utf-8",
      "date": "Mon, 30 May 2022 22:14:53 GMT",
      "transfer_encoding": "chunked",
      "x_kong_proxy_latency": "0",
      "x_kong_upstream_latency": "41"
    }
  ],
  "origin_time": 70,
  "status_code": 201
}
I forgot to tell, I'm right now using the supabase.auth.api.createUser()
All the settings I have regarding templates are the default ones
g
s
Copy code
const { data: user, error } = await supabase.auth.api.createUser({
      password,
      email,
      data: {
        //data,
      },
    });
Actually no, if I send the email_confirm: true it confirms automatically, but I need the user itself to confirm the email
g
Ah, sorry never used it. I think contacting support is next step unless someone else comes along with idea. Hard to do more from the outside.
s
I raised an issue in github but nobody answered yet, guess I'll just wait
Thank you!