[PR #3726] [MERGED] fix(jwt): add options to plugin #13221

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3726
Author: @grant0417
Created: 8/1/2025
Status: Merged
Merged: 8/1/2025
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (1)

  • 410fdbb fix(jwt): add options to plugin

📊 Changes

3 files changed (+8 additions, -2 deletions)

View changed files

.changeset/slimy-paws-sin.md (+5 -0)
📝 packages/better-auth/src/plugins/jwt/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+2 -2)

📄 Description

Currently the OIDC plugin relies on the jwt options, but they are currently not added to the plugin as they are optional which led to inconsistent behavior. I have added the options and updated the type in the oidc plugin which would have caught this with typechecks.


Summary by cubic

Added the jwt plugin options to ensure consistent behavior and updated the OIDC plugin type to catch related issues with type checks.


🔄 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/3726 **Author:** [@grant0417](https://github.com/grant0417) **Created:** 8/1/2025 **Status:** ✅ Merged **Merged:** 8/1/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`410fdbb`](https://github.com/better-auth/better-auth/commit/410fdbb9fefdd5498d5543a08991e7ee2dd678d3) fix(jwt): add options to plugin ### 📊 Changes **3 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/slimy-paws-sin.md` (+5 -0) 📝 `packages/better-auth/src/plugins/jwt/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+2 -2) </details> ### 📄 Description Currently the OIDC plugin relies on the jwt options, but they are currently not added to the plugin as they are optional which led to inconsistent behavior. I have added the options and updated the type in the oidc plugin which would have caught this with typechecks. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added the jwt plugin options to ensure consistent behavior and updated the OIDC plugin type to catch related issues with type checks. <!-- 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-13 08:49:47 -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#13221