[PR #5838] [CLOSED] feat(username): add UserWithUsername type #31866

Closed
opened 2026-04-17 22:44:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5838
Author: @jslno
Created: 11/7/2025
Status: Closed

Base: canaryHead: feat-username/user-with-username-type


📝 Commits (1)

  • dd64155 feat(username): add UserWithUsername type

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/plugins/username/index.ts (+5 -0)

📄 Description

Summary by cubic

Add a UserWithUsername type to the username plugin, extending User with username and displayUsername fields. This improves type safety and clarifies the expected user shape when working with usernames.

Written for commit dd64155def. 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/5838 **Author:** [@jslno](https://github.com/jslno) **Created:** 11/7/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat-username/user-with-username-type` --- ### 📝 Commits (1) - [`dd64155`](https://github.com/better-auth/better-auth/commit/dd64155def2391e059512259b091dc4922c06371) feat(username): add `UserWithUsername` type ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/username/index.ts` (+5 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add a UserWithUsername type to the username plugin, extending User with username and displayUsername fields. This improves type safety and clarifies the expected user shape when working with usernames. <sup>Written for commit dd64155def2391e059512259b091dc4922c06371. 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-04-17 22:44:30 -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#31866