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

Closed
opened 2026-04-13 09:31:43 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5908

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5908 **State:** closed **Merged:** Yes --- **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. -->
GiteaMirror added the pull-request label 2026-04-13 09:31:43 -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#14559