When the user wants to reset their password, the call to the backend returns 200 so the frontend thinks the email was sent,
but the email doesn't get sent: In the resend.com logs, it shows HTTP error 422 because the from field is missing in the payload:
When the user wants to reset their password, the call to the backend returns 200 so the frontend thinks the email was sent, but the email doesn't get sent: In the resend.com logs, it shows HTTP error 422 because the
from
field is missing in the payload:I just saw that there's a TODO in the code to check the
sendResult
: https://github.com/timothymiller/t4-app/blob/325b5e58a39bf9cd4019db6273ad6ce62889cf2d/packages/api/src/auth/user.ts#L224In this case,
from
was missing because it's passed like this https://github.com/timothymiller/t4-app/blob/325b5e58a39bf9cd4019db6273ad6ce62889cf2d/packages/api/src/auth/user.ts#L214 andPUBLIC_SUPPORT_EMAIL
was undefined.So we could use this issue to cover both:
sendResult
: In case of HTTP error, forward that so that the frontend doesn't think the email got sent when it didn'tPUBLIC_SUPPORT_EMAIL
andRESEND_API_KEY
GH action secrets (.github/workflows/backend.yml
) to be forwarded to the CF deployment, like:@rmarscher