mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 23:52:05 -05:00
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:
5
.changeset/tasty-teachers-compete.md
Normal file
5
.changeset/tasty-teachers-compete.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"better-auth": patch
|
||||
---
|
||||
|
||||
chore: remove unnecessary console log when ip isn't found for rate limiting
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user