diff --git a/.changeset/tasty-teachers-compete.md b/.changeset/tasty-teachers-compete.md new file mode 100644 index 0000000000..3b38f0c556 --- /dev/null +++ b/.changeset/tasty-teachers-compete.md @@ -0,0 +1,5 @@ +--- +"better-auth": patch +--- + +chore: remove unnecessary console log when ip isn't found for rate limiting diff --git a/packages/better-auth/src/api/rate-limiter/index.ts b/packages/better-auth/src/api/rate-limiter/index.ts index 39cf6bf151..e84bf182c4 100644 --- a/packages/better-auth/src/api/rate-limiter/index.ts +++ b/packages/better-auth/src/api/rate-limiter/index.ts @@ -121,7 +121,6 @@ export async function onRequestRateLimit(req: Request, ctx: AuthContext) { let max = ctx.rateLimit.max; const ip = getIp(req, ctx.options); if (!ip) { - console.warn("No IP address found for rate limiting"); return; } const key = ip + path;