[PR #5132] [MERGED] refactor: move SecondaryStorage type to core #5799

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5132
Author: @himself65
Created: 10/6/2025
Status: Merged
Merged: 10/6/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/10/06/refactor-sec-db


📝 Commits (1)

  • d7124e5 refactor: move SecondaryStorage type to core

📊 Changes

5 files changed (+35 additions, -32 deletions)

View changed files

📝 packages/better-auth/src/init.ts (+4 -2)
📝 packages/better-auth/src/types/adapter.ts (+0 -28)
📝 packages/better-auth/src/types/options.ts (+2 -2)
📝 packages/core/src/db/index.ts (+1 -0)
📝 packages/core/src/db/type.ts (+28 -0)

📄 Description

Summary by cubic

Moved the SecondaryStorage type into core to make it a single, shared source across packages. Updated better-auth to import it from @better-auth/core/db.

  • Refactors

    • Moved SecondaryStorage to packages/core/src/db/type.ts and re-exported it from @better-auth/core/db.
    • Removed SecondaryStorage from better-auth adapter types and updated imports in init.ts and options.ts.
  • Migration

    • If you used SecondaryStorage from better-auth, import it from @better-auth/core/db now.

🔄 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/5132 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/6/2025 **Status:** ✅ Merged **Merged:** 10/6/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/06/refactor-sec-db` --- ### 📝 Commits (1) - [`d7124e5`](https://github.com/better-auth/better-auth/commit/d7124e5c4f2e461f08e7a56c254728ad1328f2d7) refactor: move SecondaryStorage type to core ### 📊 Changes **5 files changed** (+35 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/init.ts` (+4 -2) 📝 `packages/better-auth/src/types/adapter.ts` (+0 -28) 📝 `packages/better-auth/src/types/options.ts` (+2 -2) 📝 `packages/core/src/db/index.ts` (+1 -0) 📝 `packages/core/src/db/type.ts` (+28 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Moved the SecondaryStorage type into core to make it a single, shared source across packages. Updated better-auth to import it from @better-auth/core/db. - **Refactors** - Moved SecondaryStorage to packages/core/src/db/type.ts and re-exported it from @better-auth/core/db. - Removed SecondaryStorage from better-auth adapter types and updated imports in init.ts and options.ts. - **Migration** - If you used SecondaryStorage from better-auth, import it from @better-auth/core/db now. <!-- 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:36:40 -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#5799