[PR #2373] [MERGED] update(api-key): Disable hashing API Keys #12531

Closed
opened 2026-04-13 08:26:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2373
Author: @ping-maxwell
Created: 4/20/2025
Status: Merged
Merged: 5/9/2025
Merged by: @Bekacru

Base: mainHead: feat/api-key/custom-hasher


📝 Commits (6)

  • 63b8864 update(api-key): Custom hashing function for api-keys
  • eb26324 add: security warnings
  • 0e5e6bb refactor: Change from customizaing hashing to disableHashing
  • fc32a1b update: remove utils & update jsdoc
  • 16fef05 chore: lint
  • c977813 update: jsdoc & fix docs

📊 Changes

7 files changed (+197 additions, -108 deletions)

View changed files

📝 docs/content/docs/plugins/api-key.mdx (+108 -86)
📝 packages/better-auth/src/plugins/api-key/api-key.test.ts (+59 -0)
📝 packages/better-auth/src/plugins/api-key/index.ts (+16 -8)
📝 packages/better-auth/src/plugins/api-key/routes/create-api-key.ts (+2 -6)
📝 packages/better-auth/src/plugins/api-key/routes/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts (+2 -8)
📝 packages/better-auth/src/plugins/api-key/types.ts (+9 -0)

📄 Description

Allows the user to disable hashing of api keys.

  • docs
  • tests

For further context:
https://discord.com/channels/1288403910284935179/1288403910284935182/1363454834740559952


🔄 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/2373 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 4/20/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/api-key/custom-hasher` --- ### 📝 Commits (6) - [`63b8864`](https://github.com/better-auth/better-auth/commit/63b8864e8a3d8735b058ac9d81fdad7c9153032c) update(api-key): Custom hashing function for api-keys - [`eb26324`](https://github.com/better-auth/better-auth/commit/eb26324bbdebf15168727f14d33f5a06f5b5ad9a) add: security warnings - [`0e5e6bb`](https://github.com/better-auth/better-auth/commit/0e5e6bb02f91b655cc8799c638a21ad6d2b64e2a) refactor: Change from customizaing hashing to disableHashing - [`fc32a1b`](https://github.com/better-auth/better-auth/commit/fc32a1b3052566a1c228b95966aa8825097b92a7) update: remove utils & update jsdoc - [`16fef05`](https://github.com/better-auth/better-auth/commit/16fef05a693bdf13039696a878701311fc3915a1) chore: lint - [`c977813`](https://github.com/better-auth/better-auth/commit/c977813832d0acad276dc4848c5b6d8279f15526) update: jsdoc & fix docs ### 📊 Changes **7 files changed** (+197 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/api-key.mdx` (+108 -86) 📝 `packages/better-auth/src/plugins/api-key/api-key.test.ts` (+59 -0) 📝 `packages/better-auth/src/plugins/api-key/index.ts` (+16 -8) 📝 `packages/better-auth/src/plugins/api-key/routes/create-api-key.ts` (+2 -6) 📝 `packages/better-auth/src/plugins/api-key/routes/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts` (+2 -8) 📝 `packages/better-auth/src/plugins/api-key/types.ts` (+9 -0) </details> ### 📄 Description Allows the user to disable hashing of api keys. - [x] docs - [x] tests For further context: https://discord.com/channels/1288403910284935179/1288403910284935182/1363454834740559952 --- <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-13 08:26:51 -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#12531