@lobehub/lobehub 2.0.0-next.132 → 2.0.0-next.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.133](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.132...v2.0.0-next.133)
6
+
7
+ <sup>Released on **2025-11-29**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Betterauth name should mapped to fullName.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Betterauth name should mapped to fullName, closes [#10490](https://github.com/lobehub/lobe-chat/issues/10490) ([7babdc1](https://github.com/lobehub/lobe-chat/commit/7babdc1))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 2.0.0-next.132](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.131...v2.0.0-next.132)
6
31
 
7
32
  <sup>Released on **2025-11-29**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Betterauth name should mapped to fullName."
6
+ ]
7
+ },
8
+ "date": "2025-11-29",
9
+ "version": "2.0.0-next.133"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.132",
3
+ "version": "2.0.0-next.133",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
package/src/auth.ts CHANGED
@@ -104,14 +104,15 @@ export const auth = betterAuth({
104
104
 
105
105
  user: {
106
106
  additionalFields: {
107
- fullName: {
107
+ username: {
108
108
  required: false,
109
109
  type: 'string',
110
110
  },
111
111
  },
112
112
  fields: {
113
113
  image: 'avatar',
114
- name: 'username',
114
+ // NOTE: use drizzle filed instead of db field, so use fullName instead of full_name
115
+ name: 'fullName',
115
116
  },
116
117
  modelName: 'users',
117
118
  },
@@ -31,9 +31,9 @@ const UserUpdater = memo(() => {
31
31
  // Preserve avatar from settings, don't override with auth provider value
32
32
  avatar: userAvatar || '',
33
33
  email: betterAuthUser.email,
34
- fullName: betterAuthUser.fullName,
34
+ fullName: betterAuthUser.name,
35
35
  id: betterAuthUser.id,
36
- username: betterAuthUser.name,
36
+ username: betterAuthUser.username,
37
37
  } as LobeUser;
38
38
 
39
39
  // Update user data in store