[PR #2467] [MERGED] docs: add info about defaultKeyLength #4336

Closed
opened 2026-03-13 11:42:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2467
Author: @skyfallwastaken
Created: 4/27/2025
Status: Merged
Merged: 5/1/2025
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (1)

  • ada1fb3 docs: add info about defaultKeyLength

📊 Changes

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

View changed files

📝 docs/content/docs/plugins/api-key.mdx (+17 -0)

📄 Description

Better Auth errors with a KEY_NOT_FOUND message not just if the key isn't there, but also if it's shorter than the length set (64 by default)

This PR adds a callout to point this out!

(see https://discord.com/channels/1288403910284935179/1366163971270508585)


🔄 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/2467 **Author:** [@skyfallwastaken](https://github.com/skyfallwastaken) **Created:** 4/27/2025 **Status:** ✅ Merged **Merged:** 5/1/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`ada1fb3`](https://github.com/better-auth/better-auth/commit/ada1fb3b3e9d2f9da0a31c744370a03211258862) docs: add info about defaultKeyLength ### 📊 Changes **1 file changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/api-key.mdx` (+17 -0) </details> ### 📄 Description Better Auth errors with a `KEY_NOT_FOUND` message not just if the key isn't there, but also _if it's shorter than the length set_ (64 by default) This PR adds a callout to point this out! (see https://discord.com/channels/1288403910284935179/1366163971270508585) --- <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-03-13 11:42: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#4336