[PR #1885] [CLOSED] feat(api-key): introduce API_KEY_TABLE constant for model references #20947

Closed
opened 2026-04-15 20:01:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1885
Author: @ismael-iskauskas
Created: 3/19/2025
Status: Closed

Base: mainHead: Error-reading-model-from-schema-#1884


📝 Commits (4)

  • d98cf51 feat(api-key): introduce API_KEY_TABLE constant for model references
  • 364ffcd Update constant.ts
  • 5a9c84e refactor(api-key): remove unnecessary newline in constant.ts
  • 21be08b Merge branch 'better-auth:main' into Error-reading-model-from-schema-#1884

📊 Changes

9 files changed (+22 additions, -13 deletions)

View changed files

packages/better-auth/src/plugins/api-key/constant.ts (+1 -0)
📝 packages/better-auth/src/plugins/api-key/index.ts (+2 -1)
📝 packages/better-auth/src/plugins/api-key/routes/create-api-key.ts (+2 -1)
📝 packages/better-auth/src/plugins/api-key/routes/delete-api-key.ts (+3 -2)
📝 packages/better-auth/src/plugins/api-key/routes/get-api-key.ts (+2 -1)
📝 packages/better-auth/src/plugins/api-key/routes/index.ts (+2 -1)
📝 packages/better-auth/src/plugins/api-key/routes/list-api-keys.ts (+2 -1)
📝 packages/better-auth/src/plugins/api-key/routes/update-api-key.ts (+3 -2)
📝 packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts (+5 -4)

📄 Description

Added file constant.ts to plugin apikey
Introduced const API_KEY_TABLE and use this constant in all endpoints
closes #1884


🔄 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/1885 **Author:** [@ismael-iskauskas](https://github.com/ismael-iskauskas) **Created:** 3/19/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `Error-reading-model-from-schema-#1884` --- ### 📝 Commits (4) - [`d98cf51`](https://github.com/better-auth/better-auth/commit/d98cf51e3da83a981c4c02f8e04829bee43d7fa6) feat(api-key): introduce API_KEY_TABLE constant for model references - [`364ffcd`](https://github.com/better-auth/better-auth/commit/364ffcd24061324d7ec2472d34d8719ab7604a3b) Update constant.ts - [`5a9c84e`](https://github.com/better-auth/better-auth/commit/5a9c84e65f9fe7001a50b6ea193903042a571c90) refactor(api-key): remove unnecessary newline in constant.ts - [`21be08b`](https://github.com/better-auth/better-auth/commit/21be08ba8880898e2fc05957276d3665777d86d1) Merge branch 'better-auth:main' into Error-reading-model-from-schema-#1884 ### 📊 Changes **9 files changed** (+22 additions, -13 deletions) <details> <summary>View changed files</summary> ➕ `packages/better-auth/src/plugins/api-key/constant.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/api-key/index.ts` (+2 -1) 📝 `packages/better-auth/src/plugins/api-key/routes/create-api-key.ts` (+2 -1) 📝 `packages/better-auth/src/plugins/api-key/routes/delete-api-key.ts` (+3 -2) 📝 `packages/better-auth/src/plugins/api-key/routes/get-api-key.ts` (+2 -1) 📝 `packages/better-auth/src/plugins/api-key/routes/index.ts` (+2 -1) 📝 `packages/better-auth/src/plugins/api-key/routes/list-api-keys.ts` (+2 -1) 📝 `packages/better-auth/src/plugins/api-key/routes/update-api-key.ts` (+3 -2) 📝 `packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts` (+5 -4) </details> ### 📄 Description Added file constant.ts to plugin apikey Introduced const API_KEY_TABLE and use this constant in all endpoints closes #1884 --- <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-15 20:01:58 -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#20947