[PR #4204] [CLOSED] update(oidc): added schema plugin options #22148

Closed
opened 2026-04-15 20:51:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4204
Author: @ping-maxwell
Created: 8/24/2025
Status: Closed

Base: canaryHead: fix/oidc-provider/missing-schema-option


📝 Commits (1)

  • 03e1b7b update(oidc): added schema plugin options

📊 Changes

3 files changed (+11 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/oidc-provider.mdx (+3 -1)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+2 -1)
📝 packages/better-auth/src/plugins/oidc-provider/types.ts (+6 -1)

📄 Description

https://github.com/better-auth/better-auth/issues/4198


Summary by cubic

Adds a schema option to the OIDC provider plugin so apps can customize the provider’s DB schema without forking. The default schema is safely merged with user-provided overrides.

  • New Features
    • Added options.schema to OIDCOptions (typed with InferOptionSchema).
    • Merges with the default schema via mergeSchema.
    • Updated OIDC provider docs to include the new schema option.

🔄 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/4204 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 8/24/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/oidc-provider/missing-schema-option` --- ### 📝 Commits (1) - [`03e1b7b`](https://github.com/better-auth/better-auth/commit/03e1b7b621e117cd5cd494ecc42f00e18955eac1) update(oidc): added schema plugin options ### 📊 Changes **3 files changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/oidc-provider.mdx` (+3 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+2 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/types.ts` (+6 -1) </details> ### 📄 Description https://github.com/better-auth/better-auth/issues/4198 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a schema option to the OIDC provider plugin so apps can customize the provider’s DB schema without forking. The default schema is safely merged with user-provided overrides. - **New Features** - Added options.schema to OIDCOptions (typed with InferOptionSchema). - Merges with the default schema via mergeSchema. - Updated OIDC provider docs to include the new schema option. <!-- 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-15 20:51:07 -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#22148