[PR #3129] [MERGED] feat(api-key): requireName to force require name on keys #30264

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3129
Author: @ping-maxwell
Created: 6/22/2025
Status: Merged
Merged: 7/10/2025
Merged by: @Bekacru

Base: mainHead: feat/api-key/required-name


📝 Commits (2)

  • e683345 feat(api-key): requireName to force require name on keys
  • 807c6c9 chore: lint

📊 Changes

6 files changed (+48 additions, -0 deletions)

View changed files

📝 docs/content/docs/plugins/api-key.mdx (+4 -0)
📝 packages/better-auth/src/plugins/api-key/api-key.test.ts (+31 -0)
📝 packages/better-auth/src/plugins/api-key/index.ts (+2 -0)
📝 packages/better-auth/src/plugins/api-key/routes/create-api-key.ts (+4 -0)
📝 packages/better-auth/src/plugins/api-key/routes/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/api-key/types.ts (+6 -0)

📄 Description

Solves https://discord.com/channels/1288403910284935179/1384635821159612526

  • docs
  • tests

🔄 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/3129 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 6/22/2025 **Status:** ✅ Merged **Merged:** 7/10/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/api-key/required-name` --- ### 📝 Commits (2) - [`e683345`](https://github.com/better-auth/better-auth/commit/e6833454246d80c54b9ae4b857ce5f20d0644b82) feat(api-key): `requireName` to force require name on keys - [`807c6c9`](https://github.com/better-auth/better-auth/commit/807c6c9a0a4ae1bbae73087db1524f8f4586cfd4) chore: lint ### 📊 Changes **6 files changed** (+48 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/api-key.mdx` (+4 -0) 📝 `packages/better-auth/src/plugins/api-key/api-key.test.ts` (+31 -0) 📝 `packages/better-auth/src/plugins/api-key/index.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/api-key/routes/create-api-key.ts` (+4 -0) 📝 `packages/better-auth/src/plugins/api-key/routes/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/api-key/types.ts` (+6 -0) </details> ### 📄 Description Solves https://discord.com/channels/1288403910284935179/1384635821159612526 - [x] docs - [X] tests --- <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:24:14 -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#30264