[PR #5349] [CLOSED] feat(sso): add option to customize db schema #31550

Closed
opened 2026-04-17 22:26:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5349
Author: @XiNiHa
Created: 10/16/2025
Status: Closed

Base: canaryHead: feat/sso-model-name


📝 Commits (2)

  • 98a6f27 feat(sso): add option to customize db schema
  • 2219209 docs: schema option of SSO plugin

📊 Changes

2 files changed (+53 additions, -38 deletions)

View changed files

📝 docs/content/docs/plugins/sso.mdx (+7 -0)
📝 packages/sso/src/index.ts (+46 -38)

📄 Description

This PR adds the schema option to the SSO plugin, used for customizing the database schema used by the plugin.
The documentation is also updated.


Summary by cubic

Adds a modelName option to the SSO plugin so you can rename the ssoProvider database model. This helps avoid naming conflicts and match existing schemas.

  • New Features
    • SSOOptions.modelName lets you set the model name (default: "ssoProvider").
    • Docs updated with the new option and defaults.

🔄 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/5349 **Author:** [@XiNiHa](https://github.com/XiNiHa) **Created:** 10/16/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/sso-model-name` --- ### 📝 Commits (2) - [`98a6f27`](https://github.com/better-auth/better-auth/commit/98a6f276d781c5c940c6d3fad0ac7edd079cfc9a) feat(sso): add option to customize db schema - [`2219209`](https://github.com/better-auth/better-auth/commit/2219209fa54411079e8a44d01f251a521d2c6667) docs: schema option of SSO plugin ### 📊 Changes **2 files changed** (+53 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/sso.mdx` (+7 -0) 📝 `packages/sso/src/index.ts` (+46 -38) </details> ### 📄 Description This PR adds the `schema` option to the SSO plugin, used for customizing the database schema used by the plugin. The documentation is also updated. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a modelName option to the SSO plugin so you can rename the ssoProvider database model. This helps avoid naming conflicts and match existing schemas. - New Features - SSOOptions.modelName lets you set the model name (default: "ssoProvider"). - Docs updated with the new option and defaults. <!-- 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-17 22:26:41 -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#31550