[PR #2854] [CLOSED] Fix rate limits and lastUsed in api-keys #30125

Closed
opened 2026-04-17 21:18:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2854
Author: @CodeWithShreyans
Created: 5/31/2025
Status: Closed

Base: mainHead: 2482


📝 Commits (8)

  • 411b4c7 Makes sure to check api key rate limits
  • f096237 Fix suggestions
  • 435ba4c Merge remote-tracking branch 'origin/main' into 2482
  • 6608e19 adds missing error code
  • cb2d0ed Merge remote-tracking branch 'origin/main' into 2482
  • 6a847ba function doesnt need to be in the closure, it can be at module level
  • 0f44e6c Merge branch 'better-auth:main' into 2482
  • 60bad1d Merge branch 'main' into 2482

📊 Changes

4 files changed (+385 additions, -230 deletions)

View changed files

📝 packages/better-auth/src/plugins/api-key/api-key.test.ts (+150 -1)
📝 packages/better-auth/src/plugins/api-key/index.ts (+11 -15)
📝 packages/better-auth/src/plugins/api-key/routes/index.ts (+30 -30)
📝 packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts (+194 -184)

📄 Description

#2514 but up to date


🔄 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/2854 **Author:** [@CodeWithShreyans](https://github.com/CodeWithShreyans) **Created:** 5/31/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `2482` --- ### 📝 Commits (8) - [`411b4c7`](https://github.com/better-auth/better-auth/commit/411b4c729e7995849942aa0236ea29003dae7bb3) Makes sure to check api key rate limits - [`f096237`](https://github.com/better-auth/better-auth/commit/f096237ec18767b681c31f6ee42a7dcfef377e5b) Fix suggestions - [`435ba4c`](https://github.com/better-auth/better-auth/commit/435ba4cd70c89a3161a99d83184ad565287825f3) Merge remote-tracking branch 'origin/main' into 2482 - [`6608e19`](https://github.com/better-auth/better-auth/commit/6608e19a5c88248dcabc3e7757d5b85a923e371f) adds missing error code - [`cb2d0ed`](https://github.com/better-auth/better-auth/commit/cb2d0ed7b7f55d03d5e524f4347cd48e3c37d8c5) Merge remote-tracking branch 'origin/main' into 2482 - [`6a847ba`](https://github.com/better-auth/better-auth/commit/6a847ba9c02f9d2ba80ed834f508eafc2ff64406) function doesnt need to be in the closure, it can be at module level - [`0f44e6c`](https://github.com/better-auth/better-auth/commit/0f44e6ca6eaedcd72f25c6db4a2ea517c9ea5067) Merge branch 'better-auth:main' into 2482 - [`60bad1d`](https://github.com/better-auth/better-auth/commit/60bad1dd8af6fb77a2f77c8a1cbd7b597ff41baa) Merge branch 'main' into 2482 ### 📊 Changes **4 files changed** (+385 additions, -230 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/api-key/api-key.test.ts` (+150 -1) 📝 `packages/better-auth/src/plugins/api-key/index.ts` (+11 -15) 📝 `packages/better-auth/src/plugins/api-key/routes/index.ts` (+30 -30) 📝 `packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts` (+194 -184) </details> ### 📄 Description #2514 but up to date --- <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-04-17 21:18:46 -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#30125