[PR #3219] [MERGED] fix(jwt): Allow to generate JWKS with other algorithm than the default one #12954

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3219
Author: @LightTab2
Created: 6/29/2025
Status: Merged
Merged: 7/6/2025
Merged by: @Bekacru

Base: v1.3Head: fix/JWTExtraction


📝 Commits (10+)

📊 Changes

2 files changed (+279 additions, -14 deletions)

View changed files

📝 packages/better-auth/src/plugins/jwt/index.ts (+20 -12)
📝 packages/better-auth/src/plugins/jwt/jwt.test.ts (+259 -2)

📄 Description

Fixes #3218
Fixes #2407


🔄 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/3219 **Author:** [@LightTab2](https://github.com/LightTab2) **Created:** 6/29/2025 **Status:** ✅ Merged **Merged:** 7/6/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `v1.3` ← **Head:** `fix/JWTExtraction` --- ### 📝 Commits (10+) - [`59028d2`](https://github.com/better-auth/better-auth/commit/59028d2794c45f783891cb154412568da1ce96f4) Fixes #3218 - [`fca9a28`](https://github.com/better-auth/better-auth/commit/fca9a2811f1266c5cc61cd697ef3fd225f407713) Lint - [`d47fd9c`](https://github.com/better-auth/better-auth/commit/d47fd9cd7af42a78eae34e6112f5dcc81f8d505a) Adds tests to every currently available algorithm - [`a69069b`](https://github.com/better-auth/better-auth/commit/a69069bc2e675fe3056fed9e9ca5e9f44e122e61) fixes duplicate test names - [`9f3037e`](https://github.com/better-auth/better-auth/commit/9f3037ee0e522a6cb759264051142131384bf956) Disables EdDSA(Ed448) test for now, removes debug print - [`96dec0b`](https://github.com/better-auth/better-auth/commit/96dec0bdb0e34f76ef182e68fd861e6c73489dbc) Drops testing support for Diffie-Hellman algorithms - [`50800f2`](https://github.com/better-auth/better-auth/commit/50800f20a22abb1aff2a27501ea068e5dcb5b7b4) new tests are for token generation - [`22d07c8`](https://github.com/better-auth/better-auth/commit/22d07c8f4a726de11cfa0cde56d18ac23be6d3b7) More robust tests, checks for failures of called testing functions - [`1ab09e2`](https://github.com/better-auth/better-auth/commit/1ab09e27700b1464dd334b732e1eca6f40a5ca9c) Should locate which test fails - [`9e2cb9f`](https://github.com/better-auth/better-auth/commit/9e2cb9f9d718119dda787007814a6fa905039cfb) removes inline functions ### 📊 Changes **2 files changed** (+279 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+20 -12) 📝 `packages/better-auth/src/plugins/jwt/jwt.test.ts` (+259 -2) </details> ### 📄 Description Fixes #3218 Fixes #2407 --- <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:40:43 -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#12954