Better AuthBA
Better Auth2w ago

Cloudflare Workers password reset emails not sending

I have Better Auth running on an Astro site hosted on a Cloudflare worker that sends emails via Resend, verification emails are working fine but the reset password emails are not being sent.

In a local dev environment and local build it all works but not when uploaded to a worker.

I believe this is because the password reset emails are not using await like the verification emails, meaning they are just being dropped by the worker before they are sent?
Solution
Got it fixed now, thanks.
Had to implement a waitUntil() because the Cloudflare worker was terminating the request in the background before it had been completed
Was this page helpful?