[PR #8242] [CLOSED] fix(db): support verification CRUD operations with secondary storage #24747

Closed
opened 2026-04-15 22:32:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8242
Author: @himself65
Created: 3/1/2026
Status: Closed

Base: canaryHead: fix/magic-link-secondary-storage


📝 Commits (1)

  • 7381426 fix(db): support verification CRUD operations with secondary storage (#8228)

📊 Changes

2 files changed (+240 additions, -5 deletions)

View changed files

📝 packages/better-auth/src/db/internal-adapter.ts (+65 -5)
📝 packages/better-auth/src/plugins/magic-link/magic-link.test.ts (+175 -0)

📄 Description

When secondaryStorage is enabled without verification.storeInDatabase, updateVerificationValue and deleteVerificationValue would fail with "Model verification not found in schema" because they always tried to hit the database directly.

Fixes: https://github.com/better-auth/better-auth/issues/8228


🔄 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/8242 **Author:** [@himself65](https://github.com/himself65) **Created:** 3/1/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/magic-link-secondary-storage` --- ### 📝 Commits (1) - [`7381426`](https://github.com/better-auth/better-auth/commit/738142673f0cf25961d7d3a8a9433ac1a0c415c5) fix(db): support verification CRUD operations with secondary storage (#8228) ### 📊 Changes **2 files changed** (+240 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/internal-adapter.ts` (+65 -5) 📝 `packages/better-auth/src/plugins/magic-link/magic-link.test.ts` (+175 -0) </details> ### 📄 Description When secondaryStorage is enabled without verification.storeInDatabase, updateVerificationValue and deleteVerificationValue would fail with "Model verification not found in schema" because they always tried to hit the database directly. Fixes: https://github.com/better-auth/better-auth/issues/8228 --- <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-15 22:32:31 -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#24747