[PR #1887] [MERGED] fix(api-key): update rateLimitEnabled default to consider options #4047

Closed
opened 2026-03-13 11:30:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1887
Author: @ismael-iskauskas
Created: 3/19/2025
Status: Merged
Merged: 4/11/2025
Merged by: @Bekacru

Base: mainHead: API-Key-Plugin--Plugin-option-ratelimit.enabled-not-used-on-create-apikey


📝 Commits (2)

  • ccf55cf fix(api-key): update rateLimitEnabled default to consider options
  • 6c7bc63 fix(api-key): refine rate limit handling to ensure default values are correctly applied

📊 Changes

2 files changed (+8 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/plugins/api-key/index.ts (+4 -1)
📝 packages/better-auth/src/plugins/api-key/routes/create-api-key.ts (+4 -1)

📄 Description

added check for options in create-api-key.ts.
option rateLimit.enabled was not used.

closes #1886


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/1887 **Author:** [@ismael-iskauskas](https://github.com/ismael-iskauskas) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 4/11/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `API-Key-Plugin--Plugin-option-ratelimit.enabled-not-used-on-create-apikey` --- ### 📝 Commits (2) - [`ccf55cf`](https://github.com/better-auth/better-auth/commit/ccf55cf9ba9dcbf0806237aa2cacd9b657228c77) fix(api-key): update rateLimitEnabled default to consider options - [`6c7bc63`](https://github.com/better-auth/better-auth/commit/6c7bc637d52fb5d5191fd8ae24251574a4bcf98d) fix(api-key): refine rate limit handling to ensure default values are correctly applied ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/api-key/index.ts` (+4 -1) 📝 `packages/better-auth/src/plugins/api-key/routes/create-api-key.ts` (+4 -1) </details> ### 📄 Description added check for options in create-api-key.ts. option rateLimit.enabled was not used. closes #1886 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:30:16 -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#4047