[PR #6632] [MERGED] fix(api-key): check metadata is enabled for api key update endpoint #23695

Closed
opened 2026-04-15 21:54:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6632
Author: @Bekacru
Created: 12/9/2025
Status: Merged
Merged: 12/13/2025
Merged by: @Bekacru

Base: canaryHead: fix/apikey-update


📝 Commits (1)

  • 080d9b7 fix(api-key): check metadata is enabled for api key update endpoint

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/plugins/api-key/routes/update-api-key.ts (+2 -1)

📄 Description

Summary by cubic

Only process metadata in the API key update endpoint when metadata is enabled. Prevents validation errors and accidental updates if clients send metadata while the feature is off.

Written for commit 080d9b763d. Summary will update automatically on new commits.


🔄 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/6632 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/9/2025 **Status:** ✅ Merged **Merged:** 12/13/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/apikey-update` --- ### 📝 Commits (1) - [`080d9b7`](https://github.com/better-auth/better-auth/commit/080d9b763d1e8611460a45429bf977f5342f5eb2) fix(api-key): check metadata is enabled for api key update endpoint ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/api-key/routes/update-api-key.ts` (+2 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Only process metadata in the API key update endpoint when metadata is enabled. Prevents validation errors and accidental updates if clients send metadata while the feature is off. <sup>Written for commit 080d9b763d1e8611460a45429bf977f5342f5eb2. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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 21:54:59 -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#23695