#How to use rate limit with convex auth

1 messages · Page 1 of 1 (latest)

solemn coral
#

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
      }
 },
abstract lintel
solemn coral
#

yes I do use rate limiting for other mutations successfully. but auth is different case as its a wrapper around auth.js

#

also actions doesn't have ctx.db access so thats the second question

runic ermine
#

Hey @solemn coral, did you end up finding a solution?