[PR #4308] [MERGED] docs(username): Change examples to APIMethod #22207

Closed
opened 2026-04-15 20:53:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4308
Author: @ping-maxwell
Created: 8/30/2025
Status: Merged
Merged: 8/30/2025
Merged by: @himself65

Base: mainHead: docs/username/update-to-api-method


📝 Commits (4)

  • 980c769 docs(username): Change examples to APIMethod
  • 9405d3d fix
  • 0c42eaa Merge branch 'main' into docs/username/update-to-api-method
  • bc6e309 Merge branch 'main' into docs/username/update-to-api-method

📊 Changes

1 file changed (+62 additions, -39 deletions)

View changed files

📝 docs/content/docs/plugins/username.mdx (+62 -39)

📄 Description

It's the same docs, except I changed everything to use


Summary by cubic

Updated the username plugin docs to use the APIMethod component for all examples, improving consistency and making request payloads clearer.

  • Refactors
    • Replaced samples with APIMethod blocks for: /sign-up/email, /sign-in/username, /update-user, /is-username-available.
    • Added typed payloads, including optional displayUsername.
    • Used resultVariable in the availability check to show response handling.

🔄 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/4308 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 8/30/2025 **Status:** ✅ Merged **Merged:** 8/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `docs/username/update-to-api-method` --- ### 📝 Commits (4) - [`980c769`](https://github.com/better-auth/better-auth/commit/980c7690ca29d22dcb1f6aac361bb1ed1e4cf298) docs(username): Change examples to APIMethod - [`9405d3d`](https://github.com/better-auth/better-auth/commit/9405d3da837bec85a6016023454c5bfb370abceb) fix - [`0c42eaa`](https://github.com/better-auth/better-auth/commit/0c42eaa8cfac931a51c6791a8cd8bb3ef30d0598) Merge branch 'main' into docs/username/update-to-api-method - [`bc6e309`](https://github.com/better-auth/better-auth/commit/bc6e309f1b1f73c3d4202efde94bad8577bc673a) Merge branch 'main' into docs/username/update-to-api-method ### 📊 Changes **1 file changed** (+62 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/username.mdx` (+62 -39) </details> ### 📄 Description It's the same docs, except I changed everything to use <APIMethod /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the username plugin docs to use the APIMethod component for all examples, improving consistency and making request payloads clearer. - **Refactors** - Replaced samples with APIMethod blocks for: /sign-up/email, /sign-in/username, /update-user, /is-username-available. - Added typed payloads, including optional displayUsername. - Used resultVariable in the availability check to show response handling. <!-- 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 20:53:14 -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#22207