[PR #4127] [MERGED] chore: fix error message capitalization #5203

Closed
opened 2026-03-13 12:13:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4127
Author: @sh2aliyev
Created: 8/21/2025
Status: Merged
Merged: 8/27/2025
Merged by: @himself65

Base: canaryHead: patch-1


📝 Commits (3)

  • f62ed56 chore: fix error message capitalization
  • ffaedd3 Merge branch 'canary' into patch-1
  • 6a7fb95 Merge branch 'canary' into patch-1

📊 Changes

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

View changed files

📝 packages/better-auth/src/error/codes.ts (+1 -1)

📄 Description

Just saw it while using the package. Small but annoying.


Summary by cubic

Fix capitalization of the INVALID_TOKEN error message to "Invalid token" to match other errors and improve user-facing consistency.


🔄 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/4127 **Author:** [@sh2aliyev](https://github.com/sh2aliyev) **Created:** 8/21/2025 **Status:** ✅ Merged **Merged:** 8/27/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-1` --- ### 📝 Commits (3) - [`f62ed56`](https://github.com/better-auth/better-auth/commit/f62ed566e45d8b3dc62f23b7681c9c60f9d60f38) chore: fix error message capitalization - [`ffaedd3`](https://github.com/better-auth/better-auth/commit/ffaedd3dcdca0b4fb5c43468bcf84eee020a2d23) Merge branch 'canary' into patch-1 - [`6a7fb95`](https://github.com/better-auth/better-auth/commit/6a7fb950eb1c891ec09a5439f5cbed2ef0f3fa8b) Merge branch 'canary' into patch-1 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/error/codes.ts` (+1 -1) </details> ### 📄 Description Just saw it while using the package. Small but annoying. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix capitalization of the INVALID_TOKEN error message to "Invalid token" to match other errors and improve user-facing consistency. <!-- 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-03-13 12:13:58 -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#5203