Ratelimit with Email Verification

Hi, everyone!

Can someone tell me why I'm not able to set rate limit to sendVerificationEmail separatley?
This rules are applied in such way that if i have different rate limit for sign-in with email and requireEmailVerification: true,
emails will be sent as many times as sign-in rate limit allows to call it
:
ts 
customRules: {
      "/sign-in/email": {
        window: 60,
        max: 10,
      },
      "/send-verification-email": {
        window: 300,
        max: 1,
      },
}

How do I rate limit the sendVerificationEmail fuinction itself ? What type of error I should throw to handle it on the client in the ErrorContext ? Why verification email even sent with every login attempt ??
Was this page helpful?