[PR #7174] [MERGED] fix(api-key): log key verification errors #32723

Closed
opened 2026-04-17 23:28:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7174
Author: @ping-maxwell
Created: 1/7/2026
Status: Merged
Merged: 1/11/2026
Merged by: @himself65

Base: canaryHead: fix/log-api-key-verification-errors


📝 Commits (8)

  • 47f5d8d fix(api-key): log key verification errors
  • 6d25c74 Merge branch 'canary' into fix/log-api-key-verification-errors
  • 89163df Merge branch 'canary' into fix/log-api-key-verification-errors
  • 1bf04f3 Merge branch 'canary' into fix/log-api-key-verification-errors
  • 26146c1 Merge branch 'canary' into fix/log-api-key-verification-errors
  • 8ab4432 Merge branch 'canary' into fix/log-api-key-verification-errors
  • acd41db Merge branch 'canary' into fix/log-api-key-verification-errors
  • 1903b0b fix: extra line

📊 Changes

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

View changed files

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

📄 Description

Fixes: https://github.com/better-auth/better-auth/issues/6258

We don't log the errors when an api-key verification errors occur, this PR adds those logs to help debug issues.

This should help with any users facing this issue too:
https://github.com/better-auth/better-auth/issues/6258


Summary by cubic

Add error logging when API key verification fails. This records the error to help debug validation issues without changing the response behavior.

Written for commit 1903b0bc49. Summary will update 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/7174 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 1/7/2026 **Status:** ✅ Merged **Merged:** 1/11/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/log-api-key-verification-errors` --- ### 📝 Commits (8) - [`47f5d8d`](https://github.com/better-auth/better-auth/commit/47f5d8d23e1000f174af7c2a76632c4d6dc95815) fix(api-key): log key verification errors - [`6d25c74`](https://github.com/better-auth/better-auth/commit/6d25c74b3ab3f99c73adbe63ef2a0b51f47c50d8) Merge branch 'canary' into fix/log-api-key-verification-errors - [`89163df`](https://github.com/better-auth/better-auth/commit/89163df67e3ffaecae2c5a169096e305c0423bb0) Merge branch 'canary' into fix/log-api-key-verification-errors - [`1bf04f3`](https://github.com/better-auth/better-auth/commit/1bf04f3c0e9cebb030415bc6f06b878fff65b0e9) Merge branch 'canary' into fix/log-api-key-verification-errors - [`26146c1`](https://github.com/better-auth/better-auth/commit/26146c17650d6dda65065fdedc40aefad87aaef2) Merge branch 'canary' into fix/log-api-key-verification-errors - [`8ab4432`](https://github.com/better-auth/better-auth/commit/8ab4432cb865ac347d6e97d3767083e00ca177b1) Merge branch 'canary' into fix/log-api-key-verification-errors - [`acd41db`](https://github.com/better-auth/better-auth/commit/acd41db4db6497c59dd9aef18d76352d183fd109) Merge branch 'canary' into fix/log-api-key-verification-errors - [`1903b0b`](https://github.com/better-auth/better-auth/commit/1903b0bc4935d3c5090ad57c3db891c568372b35) fix: extra line ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts` (+1 -0) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/6258 We don't log the errors when an api-key verification errors occur, this PR adds those logs to help debug issues. This should help with any users facing this issue too: https://github.com/better-auth/better-auth/issues/6258 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add error logging when API key verification fails. This records the error to help debug validation issues without changing the response behavior. <sup>Written for commit 1903b0bc4935d3c5090ad57c3db891c568372b35. Summary will update 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-17 23:28:22 -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#32723