Hi everyone,
I’m learning about better-auth and trying to integrate it with Nest.js using the community library @thallesp/nestjs-better-auth. This library automatically exposes several endpoints for signUp, signIn, signOut, etc.
I enabled rate limiting in Nest.js using the @nestjs/throttler library, but it doesn’t seem to affect the endpoints exposed by the better-auth module. I also tried enabling rate limiting within the better-auth configuration itself, but that didn’t work either. I believe this may be because better-auth rate limiting only applies to client-side requests.
Has anyone successfully applied rate limiting to better-auth endpoints when using Nest.js?