chore: remove unnecessary console log (#3691)

* chore: cleanup log

* chore: add changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
This commit is contained in:
Robi
2025-07-29 20:47:14 +03:00
committed by GitHub
parent ed574aa2fb
commit 978b28588e
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"better-auth": patch
---
chore: remove unnecessary console log when ip isn't found for rate limiting

View File

@@ -121,7 +121,6 @@ export async function onRequestRateLimit(req: Request, ctx: AuthContext) {
let max = ctx.rateLimit.max; let max = ctx.rateLimit.max;
const ip = getIp(req, ctx.options); const ip = getIp(req, ctx.options);
if (!ip) { if (!ip) {
console.warn("No IP address found for rate limiting");
return; return;
} }
const key = ip + path; const key = ip + path;