[PR #2755] [MERGED] fix(oidc): use JWT plugin if enabled to sign keys #4469

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2755
Author: @NefixEstrada
Created: 5/22/2025
Status: Merged
Merged: 7/17/2025
Merged by: @Bekacru

Base: v1.3Head: oidc-jwt


📝 Commits (5)

  • bc66d0f fix(oidc): use JWT plugin if enabled to sign keys
  • aa6b406 test(oidc-jwt): add comprehensive tests for OIDC JWT plugin functionality
  • a082ca2 Merge branch 'v1.3' into pr/2755
  • af4e286 update docs
  • 8bb8f81 refactor and cleanup

📊 Changes

6 files changed (+395 additions, -117 deletions)

View changed files

📝 docs/content/docs/plugins/oidc-provider.mdx (+23 -5)
📝 packages/better-auth/src/plugins/jwt/index.ts (+3 -82)
packages/better-auth/src/plugins/jwt/sign.ts (+83 -0)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+80 -23)
📝 packages/better-auth/src/plugins/oidc-provider/oidc.test.ts (+199 -1)
📝 packages/better-auth/src/plugins/oidc-provider/types.ts (+7 -6)

📄 Description

With this PR, if the JWT plugin is enabled, the OIDC plugin will use it to issue valid JWT tokens, following the published JWKS keys as the metadata endpoint suggests it should.


🔄 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/2755 **Author:** [@NefixEstrada](https://github.com/NefixEstrada) **Created:** 5/22/2025 **Status:** ✅ Merged **Merged:** 7/17/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `v1.3` ← **Head:** `oidc-jwt` --- ### 📝 Commits (5) - [`bc66d0f`](https://github.com/better-auth/better-auth/commit/bc66d0f24142d34685b6ebf56051e27feae2f963) fix(oidc): use JWT plugin if enabled to sign keys - [`aa6b406`](https://github.com/better-auth/better-auth/commit/aa6b406bdeb7d08f06f35760535be68b7e976d22) test(oidc-jwt): add comprehensive tests for OIDC JWT plugin functionality - [`a082ca2`](https://github.com/better-auth/better-auth/commit/a082ca2cf7df0c3f323833081995a199ee577898) Merge branch 'v1.3' into pr/2755 - [`af4e286`](https://github.com/better-auth/better-auth/commit/af4e286928910e4e6019f2bc21f0fa90709e09b1) update docs - [`8bb8f81`](https://github.com/better-auth/better-auth/commit/8bb8f81b77b5dfbcc7c8504618f1c88641d183c3) refactor and cleanup ### 📊 Changes **6 files changed** (+395 additions, -117 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/oidc-provider.mdx` (+23 -5) 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+3 -82) ➕ `packages/better-auth/src/plugins/jwt/sign.ts` (+83 -0) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+80 -23) 📝 `packages/better-auth/src/plugins/oidc-provider/oidc.test.ts` (+199 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/types.ts` (+7 -6) </details> ### 📄 Description With this PR, if the JWT plugin is enabled, the OIDC plugin will use it to issue valid JWT tokens, following the published JWKS keys as the metadata endpoint suggests it should. --- <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:48:15 -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#4469