Disable Rate Limit on certain routes?
I have a rate limit set up with secondary storage that uses cloudflares KV store, whilst this works great, it creates a key values pair for every api route which creates thousands of kv's.
For my case I only want to rate limit the /sign-in/social for example and none of the get-session routes. Is this currently an option?

2 Replies
You can customize the rate limit rules:
https://www.better-auth.com/docs/concepts/rate-limit#rate-limit-window
Rate Limit | Better Auth
How to limit the number of requests a user can make to the server in a given time period.
hey @Ping thanks for having a look, yeah I had something like this set up, the problem is it still triggers writes to the kv for every route (get-session, etc), is there no way to explicitly disable it and just set for one. like sign-in/social?
