[GH-ISSUE #1190] Database storage on rate limit throws error #8637

Closed
opened 2026-04-13 03:47:02 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @iqorex on GitHub (Jan 11, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1190

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Enable rate limit for local development
  2. Pick database as a storage option
  3. Run migration

Current vs. Expected behavior

Each request specified in config should be added to database for rate limit purpose instead api throws error:
Screenshot 2025-01-11 at 20 48 52

What version of Better Auth are you using?

1.1.11

Provide environment information

- OS: MAC OS 15.2
- Browser: Chrome

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  rateLimit: {
    storage: 'database',
    enabled: true,
  }
});

Additional context

No response

Originally created by @iqorex on GitHub (Jan 11, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1190 ### Is this suited for github? - [X] Yes, this is suited for github ### To Reproduce 1. Enable rate limit for local development 2. Pick database as a storage option 3. Run migration ### Current vs. Expected behavior Each request specified in config should be added to database for rate limit purpose instead api throws error: ![Screenshot 2025-01-11 at 20 48 52](https://github.com/user-attachments/assets/5db8216a-f69d-425c-af44-f72a47852cbb) ### What version of Better Auth are you using? 1.1.11 ### Provide environment information ```bash - OS: MAC OS 15.2 - Browser: Chrome ``` ### Which area(s) are affected? (Select all that apply) Backend ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ rateLimit: { storage: 'database', enabled: true, } }); ``` ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-13 03:47:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8637