[PR #8569] docs: clarify verification storage for OTP flows #16315

Closed
opened 2026-04-13 10:29:29 -05:00 by GiteaMirror · 0 comments
Owner

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

State: closed
Merged: Yes


Clarifies that OTP and magic-link flows use Better Auth's shared verification layer, so the storage backend is controlled by the global verification config rather than plugin-specific storage options.

Closes #8542

Changes

  • document verification.storeIdentifier and verification.storeInDatabase in the options reference
  • clarify storeOTP wording in the email OTP docs
  • clarify storeToken wording in the magic link docs
  • clarify storeOTP wording in the 2FA docs
  • fix the verification options example to use a valid field name

Summary by cubic

Clarifies that OTP and magic‑link flows use the shared verification layer, so storage is controlled by the global verification config and secondaryStorage (not plugin options). Documents verification.storeIdentifier/verification.storeInDatabase, updates storeOTP/storeToken wording, notes that verification records default to secondary storage when configured, aligns secondary storage docs, and fixes the verification options example.

Written for commit 2a89580f39. Summary will update on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8569 **State:** closed **Merged:** Yes --- Clarifies that OTP and magic-link flows use Better Auth's shared verification layer, so the storage backend is controlled by the global `verification` config rather than plugin-specific storage options. Closes #8542 ## Changes - document `verification.storeIdentifier` and `verification.storeInDatabase` in the options reference - clarify `storeOTP` wording in the email OTP docs - clarify `storeToken` wording in the magic link docs - clarify `storeOTP` wording in the 2FA docs - fix the verification options example to use a valid field name <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Clarifies that OTP and magic‑link flows use the shared verification layer, so storage is controlled by the global `verification` config and `secondaryStorage` (not plugin options). Documents `verification.storeIdentifier`/`verification.storeInDatabase`, updates `storeOTP`/`storeToken` wording, notes that verification records default to secondary storage when configured, aligns secondary storage docs, and fixes the verification options example. <sup>Written for commit 2a89580f39c51ceaef31c65004db60c2075a06ee. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 10:29:29 -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#16315