[PR #5996] [MERGED] fix(sso): export SSOProvider type #6371

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5996
Author: @rbayliss
Created: 11/14/2025
Status: Merged
Merged: 11/14/2025
Merged by: @himself65

Base: canaryHead: fix/missing-ssoprovider-type


📝 Commits (1)

  • 76ed851 fix(sso): Export SSOProvider type

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 packages/sso/src/index.ts (+2 -2)

📄 Description

This type is no longer exported by the SSO after a recent refactor - it's useful to have the type when using the adapter to fetch data. eg:

const existingProvider = await adapter.findOne<SSOProvider>({
  model: "ssoProvider",
  where: [{ field: "providerId", operator: "eq", value: providerId }],
});

Summary by cubic

Export SSOProvider type from the sso package index to restore the missing export after the recent refactor. This fixes type errors and lets consumers use it in typed adapter queries (e.g., findOne).

Written for commit 76ed85197e. 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/5996 **Author:** [@rbayliss](https://github.com/rbayliss) **Created:** 11/14/2025 **Status:** ✅ Merged **Merged:** 11/14/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/missing-ssoprovider-type` --- ### 📝 Commits (1) - [`76ed851`](https://github.com/better-auth/better-auth/commit/76ed85197e367e8f1ebe5c11f8aa981504f8cc1f) fix(sso): Export SSOProvider type ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/sso/src/index.ts` (+2 -2) </details> ### 📄 Description This type is no longer exported by the SSO after a recent refactor - it's useful to have the type when using the adapter to fetch data. eg: ``` const existingProvider = await adapter.findOne<SSOProvider>({ model: "ssoProvider", where: [{ field: "providerId", operator: "eq", value: providerId }], }); ``` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Export SSOProvider type from the sso package index to restore the missing export after the recent refactor. This fixes type errors and lets consumers use it in typed adapter queries (e.g., findOne<SSOProvider>). <sup>Written for commit 76ed85197e367e8f1ebe5c11f8aa981504f8cc1f. 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:56:20 -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#6371