[PR #8985] [MERGED] chore(oidc-provider): deprecate plugin in favor of @better-auth/oauth-provider #16595

Closed
opened 2026-04-13 10:36:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8985
Author: @gustavovalverde
Created: 4/6/2026
Status: Merged
Merged: 4/6/2026
Merged by: @gustavovalverde

Base: mainHead: deprecate/oidc-provider


📝 Commits (1)

  • ed69f11 chore(oidc-provider): deprecate plugin in favor of @better-auth/oauth-provider

📊 Changes

5 files changed (+28 additions, -1 deletions)

View changed files

.changeset/deprecate-oidc-provider.md (+7 -0)
📝 packages/better-auth/src/plugins/mcp/index.ts (+1 -1)
📝 packages/better-auth/src/plugins/oidc-provider/client.ts (+4 -0)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+14 -0)
📝 packages/better-auth/src/plugins/oidc-provider/types.ts (+2 -0)

📄 Description

Adds a one-time runtime deprecation warning to oidcProvider() using the existing deprecate() utility from @better-auth/core, and marks both oidcProvider and oidcClient as @deprecated in JSDoc.

Internal MCP usage bypasses the warning via a __skipDeprecationWarning flag on OIDCOptions, so only direct consumers see the notice.


Summary by cubic

Deprecates the oidc-provider plugin in favor of @better-auth/oauth-provider. Adds a one-time runtime deprecation warning (via @better-auth/core’s deprecate()), marks oidcProvider and oidcClient as @deprecated, and allows internal MCP usage to bypass the warning with __skipDeprecationWarning.

Written for commit ed69f1112c. 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/8985 **Author:** [@gustavovalverde](https://github.com/gustavovalverde) **Created:** 4/6/2026 **Status:** ✅ Merged **Merged:** 4/6/2026 **Merged by:** [@gustavovalverde](https://github.com/gustavovalverde) **Base:** `main` ← **Head:** `deprecate/oidc-provider` --- ### 📝 Commits (1) - [`ed69f11`](https://github.com/better-auth/better-auth/commit/ed69f1112c7955b689a6a1f0a085bf447c67b4cb) chore(oidc-provider): deprecate plugin in favor of @better-auth/oauth-provider ### 📊 Changes **5 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/deprecate-oidc-provider.md` (+7 -0) 📝 `packages/better-auth/src/plugins/mcp/index.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/client.ts` (+4 -0) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+14 -0) 📝 `packages/better-auth/src/plugins/oidc-provider/types.ts` (+2 -0) </details> ### 📄 Description Adds a one-time runtime deprecation warning to `oidcProvider()` using the existing `deprecate()` utility from `@better-auth/core`, and marks both `oidcProvider` and `oidcClient` as `@deprecated` in JSDoc. Internal MCP usage bypasses the warning via a `__skipDeprecationWarning` flag on `OIDCOptions`, so only direct consumers see the notice. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Deprecates the `oidc-provider` plugin in favor of `@better-auth/oauth-provider`. Adds a one-time runtime deprecation warning (via `@better-auth/core`’s `deprecate()`), marks `oidcProvider` and `oidcClient` as `@deprecated`, and allows internal MCP usage to bypass the warning with `__skipDeprecationWarning`. - **Migration** - Switch to `@better-auth/oauth-provider`: https://www.better-auth.com/docs/plugins/oauth-provider <sup>Written for commit ed69f1112c7955b689a6a1f0a085bf447c67b4cb. 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-04-13 10:36:00 -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#16595