#Question About Convex Auth Resend Usage in Development Environment

3 messages · Page 1 of 1 (latest)

vast cradle
#

Hello Team,

I hope you’re doing well!

I have a question regarding the development environment setup. I’ve configured authentication for both production and development environments using convex-auth with OTP via Resend. However, I noticed that the test emails I send in my development environment are being counted towards my Resend quota.

Is there a way to configure it so that I can bypass Resend or obtain verification codes in the development environment without impacting my quota? If so, I would greatly appreciate guidance on how to set this up.

Thank you for all the great work you’re doing! I’m really enjoying using Convex, and the new convex-auth is fantastic!

Best regards,
Carlos

pliant tangle
#

Hi Carlos! What about using a different login method in development?

#

If you're using Resend, and that actually sends an email in development, then it will impact your quota. If sounds like you want to avoid sending an email in development? In which case you could use a different auth method, or you could customize this so you check e.g. an environemnt variable and decide to either print out the code or send the email