[PR #6357] [MERGED] docs: remove callbackURL from trusted device verification example #6613

Closed
opened 2026-03-13 13:05:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6357
Author: @NotCryze
Created: 11/27/2025
Status: Merged
Merged: 11/28/2025
Merged by: @Bekacru

Base: canaryHead: remove-callbackurl-from-trusted-device-docs


📝 Commits (1)

  • 171b921 fix(docs): remove callbackURL from trusted device verification example

📊 Changes

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

View changed files

📝 docs/content/docs/plugins/2fa.mdx (+1 -2)

📄 Description

Fixes #6355 - Remove incorrect callbackURL parameter from 2FA docs

As confirmed by @better-auth-agent, the documentation mistakenly shows a callbackURL parameter for authClient.twoFactor.verifyTotp() that isn't actually supported. This PR removes the incorrect parameter from the documentation examples.


Summary by cubic

Removed the incorrect callbackURL parameter from the 2FA trusted device example to match the verifyTotp API and prevent confusion. The docs now show only trustDevice for marking a device as trusted.

Written for commit 171b921286. 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/6357 **Author:** [@NotCryze](https://github.com/NotCryze) **Created:** 11/27/2025 **Status:** ✅ Merged **Merged:** 11/28/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `remove-callbackurl-from-trusted-device-docs` --- ### 📝 Commits (1) - [`171b921`](https://github.com/better-auth/better-auth/commit/171b921286c274150b86f8e72c34ab2fe5a11a23) fix(docs): remove callbackURL from trusted device verification example ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/2fa.mdx` (+1 -2) </details> ### 📄 Description Fixes #6355 - Remove incorrect callbackURL parameter from 2FA docs As confirmed by @better-auth-agent, the documentation mistakenly shows a callbackURL parameter for authClient.twoFactor.verifyTotp() that isn't actually supported. This PR removes the incorrect parameter from the documentation examples. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed the incorrect callbackURL parameter from the 2FA trusted device example to match the verifyTotp API and prevent confusion. The docs now show only trustDevice for marking a device as trusted. <sup>Written for commit 171b921286c274150b86f8e72c34ab2fe5a11a23. 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 13:05:37 -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#6613