[PR #2194] [MERGED] fix(jwt): add sub claim #4192

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2194
Author: @Bekacru
Created: 4/9/2025
Status: Merged
Merged: 4/11/2025
Merged by: @Bekacru

Base: mainHead: fix/jwt-sub


📝 Commits (3)

📊 Changes

3 files changed (+46 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/jwt.mdx (+6 -2)
📝 packages/better-auth/src/plugins/jwt/index.ts (+22 -1)
📝 packages/better-auth/src/plugins/jwt/jwt.test.ts (+18 -0)

📄 Description

This PR is part of a stack, managed by mrge:



🔄 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/2194 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 4/9/2025 **Status:** ✅ Merged **Merged:** 4/11/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/jwt-sub` --- ### 📝 Commits (3) - [`6116fb5`](https://github.com/better-auth/better-auth/commit/6116fb5ea7815195ef0aa1d742b4471cf6052224) feat: add sub claim - [`6737afd`](https://github.com/better-auth/better-auth/commit/6737afdf858d4f78feb77032caaece94caeebca7) add test - [`179bb23`](https://github.com/better-auth/better-auth/commit/179bb235d39acaafa4e5fbe9119370ca91ef7c08) add docs ### 📊 Changes **3 files changed** (+46 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/jwt.mdx` (+6 -2) 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+22 -1) 📝 `packages/better-auth/src/plugins/jwt/jwt.test.ts` (+18 -0) </details> ### 📄 Description <!-- MRGE_STACK_DESCRIPTION_START --> This PR is part of a [stack](https://docs.mrge.io/overview), managed by [mrge](https://mrge.io): * `main` (default branch) * [#1538: feat(organization): Add dynamic role authorization](https://github.com/better-auth/better-auth/pull/1538) * **[#2194: fix(jwt): add sub claim](https://github.com/better-auth/better-auth/pull/2194)** ⬅️ Current PR ([View on mrge](https://mrge.io/pr/better-auth/better-auth/pull/2194)) --- <!-- MRGE_STACK_DESCRIPTION_END --> --- <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:36:41 -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#4192