[PR #5908] [MERGED] chore(sso): refactor SSO plugin #6312

Closed
opened 2026-03-13 12:54:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5908
Author: @jonathansamines
Created: 11/11/2025
Status: Merged
Merged: 11/11/2025
Merged by: @Bekacru

Base: canaryHead: chore/refactor-sso-plugin


📝 Commits (2)

  • b48024d chore(sso): refactor SSO plugin
  • 49bb101 chore(sso): export missing types

📊 Changes

3 files changed (+2286 additions, -2245 deletions)

View changed files

📝 packages/sso/src/index.ts (+34 -2245)
packages/sso/src/routes/sso.ts (+2044 -0)
packages/sso/src/types.ts (+208 -0)

📄 Description

What is changing?
Refactor SSO plugin to ease introduction of new features, this PR focuses on splitting current plugin code so that routes and types are declared on separate files.


Summary by cubic

Refactored the SSO plugin by splitting routes and types into separate modules. This makes the code easier to extend and maintain without changing behavior.

  • Refactors
    • Moved SSO route handlers to packages/sso/src/routes/sso.ts.
    • Extracted and exported shared types and configs to packages/sso/src/types.ts.
    • Reduced packages/sso/src/index.ts to plugin entry points and imports.

Written for commit 49bb10135c. Summary will update automatically 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/5908 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 11/11/2025 **Status:** ✅ Merged **Merged:** 11/11/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `chore/refactor-sso-plugin` --- ### 📝 Commits (2) - [`b48024d`](https://github.com/better-auth/better-auth/commit/b48024dc975387ea5ca7c2d0abced6682308c8a7) chore(sso): refactor SSO plugin - [`49bb101`](https://github.com/better-auth/better-auth/commit/49bb10135cc2b06a8dda45978db309a35362340b) chore(sso): export missing types ### 📊 Changes **3 files changed** (+2286 additions, -2245 deletions) <details> <summary>View changed files</summary> 📝 `packages/sso/src/index.ts` (+34 -2245) ➕ `packages/sso/src/routes/sso.ts` (+2044 -0) ➕ `packages/sso/src/types.ts` (+208 -0) </details> ### 📄 Description **What is changing?** Refactor SSO plugin to ease introduction of new features, this PR focuses on splitting current plugin code so that routes and types are declared on separate files. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Refactored the SSO plugin by splitting routes and types into separate modules. This makes the code easier to extend and maintain without changing behavior. - **Refactors** - Moved SSO route handlers to packages/sso/src/routes/sso.ts. - Extracted and exported shared types and configs to packages/sso/src/types.ts. - Reduced packages/sso/src/index.ts to plugin entry points and imports. <sup>Written for commit 49bb10135cc2b06a8dda45978db309a35362340b. Summary will update automatically 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 12:54:27 -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#6312