[PR #3354] [CLOSED] Fix getJwtToken to look for session or newSession. #30378

Closed
opened 2026-04-17 21:29:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3354
Author: @izakfilmalter
Created: 7/12/2025
Status: Closed

Base: mainHead: fix/getJwtToken-new-session


📝 Commits (2)

  • c716923 Fix getJwtToken to look for session or newSession.
  • cbd2837 Fix lint.

📊 Changes

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

View changed files

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

📄 Description

Resolves #3353


Summary by cubic

Updated getJwtToken to use either session or newSession from context, fixing issues when only newSession is present.


🔄 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/3354 **Author:** [@izakfilmalter](https://github.com/izakfilmalter) **Created:** 7/12/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/getJwtToken-new-session` --- ### 📝 Commits (2) - [`c716923`](https://github.com/better-auth/better-auth/commit/c716923c120e9d8073cc36aaa97e32933d716758) Fix `getJwtToken` to look for `session` or `newSession`. - [`cbd2837`](https://github.com/better-auth/better-auth/commit/cbd28379ff44589276a08492ce60dbb13fba5041) Fix lint. ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+4 -4) </details> ### 📄 Description Resolves #3353 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated getJwtToken to use either session or newSession from context, fixing issues when only newSession is present. <!-- 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-04-17 21:29:34 -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#30378