[PR #7225] [MERGED] chore: op plugin test fail #7157

Closed
opened 2026-03-13 13:26:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7225
Author: @dvanmali
Created: 1/9/2026
Status: Merged
Merged: 1/9/2026
Merged by: @himself65

Base: canaryHead: opPluginTestFail


📝 Commits (1)

  • 7c40835 chore: op plugin test fail

📊 Changes

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

View changed files

📝 packages/oauth-provider/src/utils/index.ts (+5 -1)

📄 Description

Revert breaking change preventing failure when plugin is undefined when it should be.

Fixes the failing test in oauth.test.ts


Summary by cubic

Make getJwtPlugin throw a BetterAuthError when the jwt plugin is missing, restoring fail-fast behavior. This surfaces misconfiguration early and fixes tests that expect failure.

Written for commit 7c4083542d. Summary will update on new commits.


🔄 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/7225 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 1/9/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `opPluginTestFail` --- ### 📝 Commits (1) - [`7c40835`](https://github.com/better-auth/better-auth/commit/7c4083542d95c62de98979ddf834eeb38f6fb497) chore: op plugin test fail ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/oauth-provider/src/utils/index.ts` (+5 -1) </details> ### 📄 Description Revert breaking change preventing failure when plugin is undefined when it should be. Fixes the failing test in `oauth.test.ts` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Make getJwtPlugin throw a BetterAuthError when the jwt plugin is missing, restoring fail-fast behavior. This surfaces misconfiguration early and fixes tests that expect failure. <sup>Written for commit 7c4083542d95c62de98979ddf834eeb38f6fb497. Summary will update on new commits.</sup> <!-- 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-03-13 13:26:03 -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#7157