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?
No description
2 Replies
Ping
Ping4d ago
Rate Limit | Better Auth
How to limit the number of requests a user can make to the server in a given time period.
deved9036
deved9036OP3d ago
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?
No description

Did you find this page helpful?