[PR #8546] [CLOSED] feat: expose /api-key/verify to clients #24953

Closed
opened 2026-04-15 22:39:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8546
Author: @heiwen
Created: 3/11/2026
Status: Closed

Base: canaryHead: feat--expose-api-key-verify-to-clients


📝 Commits (1)

  • 6e211c4 feat: expose /api-key/verify to clients

📊 Changes

2 files changed (+2 additions, -0 deletions)

View changed files

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

📄 Description

Added POST /api-key/verify as a concrete API key route and registered it in the API key client plugin. This enables client-side access to API key verification through authClient.apiKey.verify(...) and supports HTTP-based verification flows that were not previously available.

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


Summary by cubic

Exposed POST /api-key/verify to clients. Apps can now call authClient.apiKey.verify(...) to verify API keys over HTTP.

Written for commit 6e211c4cdd. 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/8546 **Author:** [@heiwen](https://github.com/heiwen) **Created:** 3/11/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat--expose-api-key-verify-to-clients` --- ### 📝 Commits (1) - [`6e211c4`](https://github.com/better-auth/better-auth/commit/6e211c4cdd1d70ef508af66303b19d633c2f5956) feat: expose /api-key/verify to clients ### 📊 Changes **2 files changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/api-key/src/client.ts` (+1 -0) 📝 `packages/api-key/src/routes/verify-api-key.ts` (+1 -0) </details> ### 📄 Description Added POST /api-key/verify as a concrete API key route and registered it in the API key client plugin. This enables client-side access to API key verification through authClient.apiKey.verify(...) and supports HTTP-based verification flows that were not previously available. Fixes: https://github.com/better-auth/better-auth/issues/8535 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Exposed POST `/api-key/verify` to clients. Apps can now call `authClient.apiKey.verify(...)` to verify API keys over HTTP. <sup>Written for commit 6e211c4cdd1d70ef508af66303b19d633c2f5956. 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-15 22:39:10 -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#24953