[PR #7094] [MERGED] docs: correct set password code example #23971

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7094
Author: @himself65
Created: 1/2/2026
Status: Merged
Merged: 1/2/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/02/fix-doc


📝 Commits (1)

  • 28842d5 docs: correct set password code example

📊 Changes

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

View changed files

📝 docs/content/docs/concepts/users-accounts.mdx (+4 -2)

📄 Description

Cherry pick from https://github.com/better-auth/better-auth/pull/6934


Summary by cubic

Corrected the setPassword code example in the Users & Accounts docs to show a working request. Updated the body to use newPassword: "new-password" and added headers: await headers() so the user's session token is sent.

Written for commit 28842d57a7. Summary will update 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/7094 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/2/2026 **Status:** ✅ Merged **Merged:** 1/2/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/02/fix-doc` --- ### 📝 Commits (1) - [`28842d5`](https://github.com/better-auth/better-auth/commit/28842d57a76b1c1fab12c321bbe26c32bb7c3083) docs: correct set password code example ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/users-accounts.mdx` (+4 -2) </details> ### 📄 Description Cherry pick from https://github.com/better-auth/better-auth/pull/6934 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Corrected the setPassword code example in the Users & Accounts docs to show a working request. Updated the body to use newPassword: "new-password" and added headers: await headers() so the user's session token is sent. <sup>Written for commit 28842d57a76b1c1fab12c321bbe26c32bb7c3083. Summary will update 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-04-15 22:05:45 -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#23971