Oren
Oren5mo ago

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
}
},
{
id: "http-email",
name: "Email",
type: "email",
maxAge: 60 * 60 * 24,
sendVerificationRequest: async ({ identifier, url }) => {
///..my email sending logic I want to rate limit
}
},
2 Replies
Omar
Omar5mo ago
Oren
OrenOP5mo ago
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

Did you find this page helpful?