OrenO
Convex Community2y ago
5 replies
Oren

How to use rate limit with convex auth

I have my auth setup with http-email and I would like to rate limit it but it seems like not possible right now. I do use rate limiting for other mutations successfully

second question is how to use rate-limiting in actions?

 {
      id: "http-email",
      name: "Email",
      type: "email",
      maxAge: 60 * 60 * 24,
      sendVerificationRequest: async ({ identifier, url }) => {
          ///..my email sending logic I want to rate limit
      }
 },
Was this page helpful?