[PR #3274] [CLOSED] docs(plugin): update schema key to optional for username plugin #4730

Closed
opened 2026-03-13 11:57:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3274
Author: @H7ioo
Created: 7/5/2025
Status: Closed

Base: mainHead: patch/docs-fix-username-schema-key


📝 Commits (1)

  • 3900e04 docs(plugin): update schema key to optional for username plugin

📊 Changes

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

View changed files

📝 docs/content/docs/plugins/username.mdx (+4 -2)

📄 Description

Updated the username plugin docs to reflect the current behavior, where username is not required during registration. Also, session.user.username can be string | null | undefined, so the schema fields should be optional.


🔄 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/3274 **Author:** [@H7ioo](https://github.com/H7ioo) **Created:** 7/5/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch/docs-fix-username-schema-key` --- ### 📝 Commits (1) - [`3900e04`](https://github.com/better-auth/better-auth/commit/3900e04b7dd2f625a0298606e28f0e5de9bb9df0) docs(plugin): update schema key to optional for username plugin ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/username.mdx` (+4 -2) </details> ### 📄 Description Updated the `username` plugin docs to reflect the current behavior, where username is not required during registration. Also, `session.user.username` can be `string | null | undefined`, so the schema fields should be optional. --- <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 11:57:46 -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#4730