[PR #921] [MERGED] fix(jwt): pass session on definePayload callback #11791

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/921
Author: @Bekacru
Created: 12/17/2024
Status: Merged
Merged: 12/17/2024
Merged by: @Bekacru

Base: mainHead: fix/jwt


📝 Commits (2)

  • aac521a fix: mark jwt extractable so they can be exported in crypto web api context
  • 5f8e98f fix(jwt): pass session on definePayload callvback

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/jwt/index.ts (+15 -6)

📄 Description

closes #428


🔄 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/921 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/17/2024 **Status:** ✅ Merged **Merged:** 12/17/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/jwt` --- ### 📝 Commits (2) - [`aac521a`](https://github.com/better-auth/better-auth/commit/aac521a6a333f03df9a9ebff6488fc27f5f03cff) fix: mark jwt extractable so they can be exported in crypto web api context - [`5f8e98f`](https://github.com/better-auth/better-auth/commit/5f8e98f5223be4493aa00b3667b8a475f3488dfb) fix(jwt): pass session on definePayload callvback ### 📊 Changes **1 file changed** (+15 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+15 -6) </details> ### 📄 Description closes #428 --- <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:00:27 -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#11791