@lobehub/lobehub 2.0.0-next.355 → 2.0.0-next.357

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.
Files changed (156) hide show
  1. package/.env.desktop +0 -1
  2. package/.env.example +16 -20
  3. package/.env.example.development +1 -4
  4. package/.github/workflows/e2e.yml +10 -11
  5. package/CHANGELOG.md +60 -0
  6. package/Dockerfile +28 -4
  7. package/changelog/v1.json +18 -0
  8. package/docker-compose/local/docker-compose.yml +2 -2
  9. package/docker-compose/local/grafana/docker-compose.yml +2 -2
  10. package/docker-compose/local/logto/docker-compose.yml +2 -2
  11. package/docker-compose/local/zitadel/.env.example +2 -2
  12. package/docker-compose/local/zitadel/.env.zh-CN.example +2 -2
  13. package/docker-compose/production/grafana/docker-compose.yml +2 -2
  14. package/docker-compose/production/logto/.env.example +2 -2
  15. package/docker-compose/production/logto/.env.zh-CN.example +2 -2
  16. package/docker-compose/production/zitadel/.env.example +2 -2
  17. package/docker-compose/production/zitadel/.env.zh-CN.example +2 -2
  18. package/docs/development/basic/add-new-authentication-providers.mdx +144 -136
  19. package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +146 -136
  20. package/docs/self-hosting/advanced/auth/legacy.mdx +4 -0
  21. package/docs/self-hosting/advanced/auth/legacy.zh-CN.mdx +4 -0
  22. package/docs/self-hosting/advanced/auth/nextauth-to-betterauth.mdx +326 -0
  23. package/docs/self-hosting/advanced/auth/nextauth-to-betterauth.zh-CN.mdx +323 -0
  24. package/docs/self-hosting/advanced/auth.mdx +43 -16
  25. package/docs/self-hosting/advanced/auth.zh-CN.mdx +44 -16
  26. package/docs/self-hosting/advanced/redis/upstash.mdx +69 -0
  27. package/docs/self-hosting/advanced/redis/upstash.zh-CN.mdx +69 -0
  28. package/docs/self-hosting/advanced/redis.mdx +128 -0
  29. package/docs/self-hosting/advanced/redis.zh-CN.mdx +126 -0
  30. package/docs/self-hosting/environment-variables/auth.mdx +15 -1
  31. package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +15 -1
  32. package/docs/self-hosting/environment-variables/basic.mdx +13 -0
  33. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +13 -0
  34. package/docs/self-hosting/environment-variables/redis.mdx +68 -0
  35. package/docs/self-hosting/environment-variables/redis.zh-CN.mdx +67 -0
  36. package/docs/self-hosting/migration/v2/breaking-changes.mdx +23 -23
  37. package/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx +23 -23
  38. package/docs/self-hosting/server-database/docker-compose.mdx +4 -4
  39. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +4 -4
  40. package/e2e/CLAUDE.md +5 -6
  41. package/e2e/docs/local-setup.md +9 -12
  42. package/e2e/scripts/setup.ts +9 -15
  43. package/e2e/src/support/webServer.ts +6 -5
  44. package/package.json +4 -6
  45. package/packages/database/src/schemas/nextauth.ts +7 -2
  46. package/packages/model-runtime/src/core/contextBuilders/anthropic.test.ts +370 -0
  47. package/packages/model-runtime/src/core/contextBuilders/anthropic.ts +18 -5
  48. package/packages/utils/src/server/__tests__/auth.test.ts +1 -63
  49. package/packages/utils/src/server/auth.ts +8 -24
  50. package/scripts/_shared/checkDeprecatedAuth.js +99 -0
  51. package/scripts/clerk-to-betterauth/index.ts +8 -3
  52. package/scripts/nextauth-to-betterauth/_internal/config.ts +41 -0
  53. package/scripts/nextauth-to-betterauth/_internal/db.ts +32 -0
  54. package/scripts/nextauth-to-betterauth/_internal/env.ts +6 -0
  55. package/scripts/nextauth-to-betterauth/index.ts +226 -0
  56. package/scripts/nextauth-to-betterauth/verify.ts +188 -0
  57. package/scripts/prebuild.mts +66 -13
  58. package/scripts/serverLauncher/startServer.js +5 -5
  59. package/src/app/(backend)/api/auth/[...all]/route.ts +5 -23
  60. package/src/app/(backend)/api/webhooks/casdoor/route.ts +5 -5
  61. package/src/app/(backend)/api/webhooks/logto/route.ts +8 -8
  62. package/src/app/(backend)/middleware/auth/index.test.ts +8 -1
  63. package/src/app/(backend)/middleware/auth/index.ts +6 -15
  64. package/src/app/(backend)/middleware/auth/utils.test.ts +0 -32
  65. package/src/app/(backend)/middleware/auth/utils.ts +3 -8
  66. package/src/app/(backend)/webapi/chat/[provider]/route.test.ts +8 -1
  67. package/src/app/(backend)/webapi/create-image/comfyui/route.ts +0 -1
  68. package/src/app/(backend)/webapi/models/[provider]/route.test.ts +8 -1
  69. package/src/app/[variants]/(auth)/signin/SignInEmailStep.tsx +1 -1
  70. package/src/app/[variants]/(auth)/signup/[[...signup]]/page.tsx +4 -17
  71. package/src/app/[variants]/(main)/agent/cron/[cronId]/features/CronJobContentEditor.tsx +34 -21
  72. package/src/app/[variants]/(main)/settings/profile/features/SSOProvidersList/index.tsx +12 -19
  73. package/src/app/[variants]/(main)/settings/profile/index.tsx +8 -14
  74. package/src/components/{NextAuth/AuthIcons.tsx → AuthIcons.tsx} +8 -10
  75. package/src/envs/auth.ts +12 -51
  76. package/src/envs/email.ts +3 -0
  77. package/src/envs/redis.ts +12 -54
  78. package/src/features/ChatInput/ChatInputProvider.tsx +22 -2
  79. package/src/features/ChatInput/InputEditor/index.tsx +14 -3
  80. package/src/features/ChatInput/store/initialState.ts +2 -0
  81. package/src/features/EditorCanvas/DiffAllToolbar.tsx +4 -5
  82. package/src/features/EditorCanvas/DocumentIdMode.tsx +21 -1
  83. package/src/features/User/__tests__/PanelContent.test.tsx +0 -11
  84. package/src/features/User/__tests__/UserAvatar.test.tsx +1 -16
  85. package/src/layout/AuthProvider/index.tsx +1 -6
  86. package/src/layout/GlobalProvider/StoreInitialization.tsx +2 -4
  87. package/src/libs/better-auth/define-config.ts +2 -0
  88. package/src/libs/better-auth/plugins/email-whitelist.test.ts +120 -0
  89. package/src/libs/better-auth/plugins/email-whitelist.ts +62 -0
  90. package/src/libs/next/config/define-config.ts +13 -1
  91. package/src/libs/next/proxy/define-config.ts +2 -75
  92. package/src/libs/oidc-provider/provider.test.ts +0 -4
  93. package/src/libs/redis/index.ts +0 -1
  94. package/src/libs/redis/manager.test.ts +9 -45
  95. package/src/libs/redis/manager.ts +2 -16
  96. package/src/libs/redis/redis.test.ts +2 -4
  97. package/src/libs/redis/redis.ts +2 -4
  98. package/src/libs/redis/types.ts +2 -24
  99. package/src/libs/redis/utils.test.ts +0 -10
  100. package/src/libs/redis/utils.ts +0 -19
  101. package/src/libs/trpc/lambda/context.test.ts +0 -13
  102. package/src/libs/trpc/lambda/context.ts +21 -59
  103. package/src/libs/trpc/middleware/userAuth.ts +1 -7
  104. package/src/libs/trusted-client/getSessionUser.ts +15 -35
  105. package/src/server/globalConfig/index.ts +1 -3
  106. package/src/server/routers/lambda/__tests__/user.test.ts +0 -48
  107. package/src/server/routers/lambda/user.ts +1 -12
  108. package/src/server/services/email/impls/nodemailer/index.ts +2 -2
  109. package/src/server/services/webhookUser/index.ts +88 -0
  110. package/src/services/user/index.test.ts +0 -14
  111. package/src/services/user/index.ts +0 -4
  112. package/src/store/document/slices/document/action.ts +1 -0
  113. package/src/store/user/slices/auth/action.test.ts +22 -126
  114. package/src/store/user/slices/auth/action.ts +32 -65
  115. package/src/store/user/slices/auth/initialState.ts +0 -3
  116. package/src/store/user/slices/auth/selectors.ts +0 -3
  117. package/tests/setup.ts +10 -0
  118. package/scripts/_shared/checkDeprecatedClerkEnv.js +0 -42
  119. package/src/app/(backend)/api/auth/adapter/route.ts +0 -137
  120. package/src/app/[variants]/(auth)/next-auth/error/AuthErrorPage.tsx +0 -40
  121. package/src/app/[variants]/(auth)/next-auth/error/page.tsx +0 -11
  122. package/src/app/[variants]/(auth)/next-auth/signin/AuthSignInBox.tsx +0 -167
  123. package/src/app/[variants]/(auth)/next-auth/signin/page.tsx +0 -11
  124. package/src/app/[variants]/(auth)/reset-password/layout.tsx +0 -12
  125. package/src/app/[variants]/(auth)/signin/layout.tsx +0 -12
  126. package/src/app/[variants]/(auth)/verify-email/layout.tsx +0 -12
  127. package/src/envs/auth.test.ts +0 -47
  128. package/src/layout/AuthProvider/NextAuth/UserUpdater.tsx +0 -44
  129. package/src/layout/AuthProvider/NextAuth/index.tsx +0 -17
  130. package/src/libs/next-auth/adapter/index.ts +0 -177
  131. package/src/libs/next-auth/auth.config.ts +0 -64
  132. package/src/libs/next-auth/index.ts +0 -20
  133. package/src/libs/next-auth/sso-providers/auth0.ts +0 -24
  134. package/src/libs/next-auth/sso-providers/authelia.ts +0 -39
  135. package/src/libs/next-auth/sso-providers/authentik.ts +0 -25
  136. package/src/libs/next-auth/sso-providers/casdoor.ts +0 -50
  137. package/src/libs/next-auth/sso-providers/cloudflare-zero-trust.ts +0 -34
  138. package/src/libs/next-auth/sso-providers/cognito.ts +0 -8
  139. package/src/libs/next-auth/sso-providers/feishu.ts +0 -83
  140. package/src/libs/next-auth/sso-providers/generic-oidc.ts +0 -38
  141. package/src/libs/next-auth/sso-providers/github.ts +0 -23
  142. package/src/libs/next-auth/sso-providers/google.ts +0 -18
  143. package/src/libs/next-auth/sso-providers/index.ts +0 -35
  144. package/src/libs/next-auth/sso-providers/keycloak.ts +0 -22
  145. package/src/libs/next-auth/sso-providers/logto.ts +0 -48
  146. package/src/libs/next-auth/sso-providers/microsoft-entra-id-helper.ts +0 -29
  147. package/src/libs/next-auth/sso-providers/microsoft-entra-id.ts +0 -19
  148. package/src/libs/next-auth/sso-providers/okta.ts +0 -22
  149. package/src/libs/next-auth/sso-providers/sso.config.ts +0 -8
  150. package/src/libs/next-auth/sso-providers/wechat.ts +0 -36
  151. package/src/libs/next-auth/sso-providers/zitadel.ts +0 -21
  152. package/src/libs/redis/upstash.test.ts +0 -158
  153. package/src/libs/redis/upstash.ts +0 -136
  154. package/src/server/services/nextAuthUser/index.ts +0 -318
  155. package/src/server/services/nextAuthUser/utils.ts +0 -62
  156. package/src/types/next-auth.d.ts +0 -26
package/.env.desktop CHANGED
@@ -5,4 +5,3 @@ KEY_VAULTS_SECRET=oLXWIiR/AKF+rWaqy9lHkrYgzpATbW3CtJp3UfkVgpE=
5
5
  DATABASE_URL=postgresql://postgres@localhost:5432/postgres
6
6
  SEARCH_PROVIDERS=search1api
7
7
  NEXT_PUBLIC_IS_DESKTOP_APP=1
8
- NEXT_PUBLIC_ENABLE_NEXT_AUTH=0
package/.env.example CHANGED
@@ -24,9 +24,9 @@
24
24
  # Example: Allow specific internal servers while keeping SSRF protection
25
25
  # SSRF_ALLOW_IP_ADDRESS_LIST=192.168.1.100,10.0.0.50
26
26
 
27
- ########################################
28
- ############ Redis Settings ############
29
- ########################################
27
+ # #######################################
28
+ # ########### Redis Settings ############
29
+ # #######################################
30
30
 
31
31
  # Connection string for self-hosted Redis (Docker/K8s/managed). Use container hostname when running via docker-compose.
32
32
  # REDIS_URL=redis://localhost:6379
@@ -44,9 +44,9 @@
44
44
  # Namespace prefix for cache/queue keys.
45
45
  # REDIS_PREFIX=lobechat
46
46
 
47
- ########################################
48
- ########## AI Provider Service #########
49
- ########################################
47
+ # #######################################
48
+ # ######### AI Provider Service #########
49
+ # #######################################
50
50
 
51
51
  # ## OpenAI ###
52
52
 
@@ -277,25 +277,12 @@ OPENAI_API_KEY=sk-xxxxxxxxx
277
277
  # ########### Auth Service ##############
278
278
  # #######################################
279
279
 
280
- # NextAuth related configurations
281
- # NEXT_PUBLIC_ENABLE_NEXT_AUTH=1
282
- # NEXT_AUTH_SECRET=
283
-
284
- # Auth0 configurations
285
- # AUTH_AUTH0_ID=
286
- # AUTH_AUTH0_SECRET=
287
- # AUTH_AUTH0_ISSUER=https://your-domain.auth0.com
288
-
289
- # Better-Auth related configurations
290
- # NEXT_PUBLIC_ENABLE_BETTER_AUTH=1
291
-
292
280
  # Auth Secret (use `openssl rand -base64 32` to generate)
293
- # Shared between Better-Auth and Next-Auth
294
281
  # AUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
295
282
 
296
283
  # Require email verification before allowing users to sign in (default: false)
297
284
  # Set to '1' to force users to verify their email before signing in
298
- # NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION=0
285
+ # AUTH_EMAIL_VERIFICATION=0
299
286
 
300
287
  # SSO Providers Configuration (for Better-Auth)
301
288
  # Comma-separated list of enabled OAuth providers
@@ -303,6 +290,11 @@ OPENAI_API_KEY=sk-xxxxxxxxx
303
290
  # Example: AUTH_SSO_PROVIDERS=google,github,auth0,microsoft-entra-id
304
291
  # AUTH_SSO_PROVIDERS=
305
292
 
293
+ # Email whitelist for registration (comma-separated)
294
+ # Supports full email (user@example.com) or domain (example.com)
295
+ # Leave empty to allow all emails
296
+ # AUTH_ALLOWED_EMAILS=example.com,admin@other.com
297
+
306
298
  # Google OAuth Configuration (for Better-Auth)
307
299
  # Get credentials from: https://console.cloud.google.com/apis/credentials
308
300
  # Authorized redirect URIs:
@@ -366,6 +358,10 @@ OPENAI_API_KEY=sk-xxxxxxxxx
366
358
  # SMTP authentication password (use app-specific password for Gmail)
367
359
  # SMTP_PASS=your-password-or-app-specific-password
368
360
 
361
+ # Sender email address (optional, defaults to SMTP_USER)
362
+ # Required for AWS SES where SMTP_USER is not a valid email address
363
+ # SMTP_FROM=noreply@example.com
364
+
369
365
  # #######################################
370
366
  # ######### Server Database #############
371
367
  # #######################################
@@ -37,10 +37,7 @@ REDIS_PREFIX=lobechat
37
37
  REDIS_TLS=0
38
38
 
39
39
  # Authentication Configuration
40
- # Enable Better Auth authentication
41
- NEXT_PUBLIC_ENABLE_BETTER_AUTH=1
42
-
43
- # Better Auth secret for JWT signing (generate with: openssl rand -base64 32)
40
+ # Auth secret for JWT signing (generate with: openssl rand -base64 32)
44
41
  AUTH_SECRET=${UNSAFE_SECRET}
45
42
 
46
43
  # SSO providers configuration - using Casdoor for development
@@ -14,9 +14,8 @@ env:
14
14
  DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
15
15
  DATABASE_DRIVER: node
16
16
  KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
17
- BETTER_AUTH_SECRET: e2e-test-secret-key-for-better-auth-32chars!
18
- NEXT_PUBLIC_ENABLE_BETTER_AUTH: '1'
19
- NEXT_PUBLIC_AUTH_EMAIL_VERIFICATION: '0'
17
+ AUTH_SECRET: e2e-test-secret-key-for-better-auth-32chars!
18
+ AUTH_EMAIL_VERIFICATION: "0"
20
19
  # Mock S3 env vars to prevent initialization errors
21
20
  S3_ACCESS_KEY_ID: e2e-mock-access-key
22
21
  S3_SECRET_ACCESS_KEY: e2e-mock-secret-key
@@ -34,8 +33,8 @@ jobs:
34
33
  - id: skip_check
35
34
  uses: fkirc/skip-duplicate-actions@v5
36
35
  with:
37
- concurrent_skipping: 'same_content_newer'
38
- skip_after_successful_duplicate: 'true'
36
+ concurrent_skipping: "same_content_newer"
37
+ skip_after_successful_duplicate: "true"
39
38
  do_not_skip: '["workflow_dispatch", "schedule"]'
40
39
 
41
40
  e2e:
@@ -75,7 +74,7 @@ jobs:
75
74
  - name: Build application
76
75
  run: bun run build
77
76
  env:
78
- SKIP_LINT: '1'
77
+ SKIP_LINT: "1"
79
78
 
80
79
  - name: Run E2E tests
81
80
  run: bun run e2e
@@ -84,8 +83,8 @@ jobs:
84
83
  if: failure()
85
84
  uses: actions/upload-artifact@v6
86
85
  with:
87
- name: e2e-artifacts
88
- path: |
89
- e2e/reports
90
- e2e/screenshots
91
- if-no-files-found: ignore
86
+ name: e2e-artifacts
87
+ path: |
88
+ e2e/reports
89
+ e2e/screenshots
90
+ if-no-files-found: ignore
package/CHANGELOG.md CHANGED
@@ -2,6 +2,66 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.357](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.356...v2.0.0-next.357)
6
+
7
+ <sup>Released on **2026-01-23**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **model-runtime**: Handle null content in anthropic message builder.
12
+ - **misc**: Page content switch mismatch.
13
+
14
+ <br/>
15
+
16
+ <details>
17
+ <summary><kbd>Improvements and Fixes</kbd></summary>
18
+
19
+ #### What's fixed
20
+
21
+ - **model-runtime**: Handle null content in anthropic message builder, closes [#11756](https://github.com/lobehub/lobe-chat/issues/11756) ([539753a](https://github.com/lobehub/lobe-chat/commit/539753a))
22
+ - **misc**: Page content switch mismatch, closes [#11758](https://github.com/lobehub/lobe-chat/issues/11758) ([fdc8f95](https://github.com/lobehub/lobe-chat/commit/fdc8f95))
23
+
24
+ </details>
25
+
26
+ <div align="right">
27
+
28
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
29
+
30
+ </div>
31
+
32
+ ## [Version 2.0.0-next.356](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.355...v2.0.0-next.356)
33
+
34
+ <sup>Released on **2026-01-23**</sup>
35
+
36
+ #### ✨ Features
37
+
38
+ - **misc**: Remove NextAuth.
39
+
40
+ #### 🐛 Bug Fixes
41
+
42
+ - **editor**: Prevent crash when toggling enableInputMarkdown setting.
43
+
44
+ <br/>
45
+
46
+ <details>
47
+ <summary><kbd>Improvements and Fixes</kbd></summary>
48
+
49
+ #### What's improved
50
+
51
+ - **misc**: Remove NextAuth, closes [#11732](https://github.com/lobehub/lobe-chat/issues/11732) ([1eff864](https://github.com/lobehub/lobe-chat/commit/1eff864))
52
+
53
+ #### What's fixed
54
+
55
+ - **editor**: Prevent crash when toggling enableInputMarkdown setting, closes [#11755](https://github.com/lobehub/lobe-chat/issues/11755) ([ea5eed8](https://github.com/lobehub/lobe-chat/commit/ea5eed8))
56
+
57
+ </details>
58
+
59
+ <div align="right">
60
+
61
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
62
+
63
+ </div>
64
+
5
65
  ## [Version 2.0.0-next.355](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.354...v2.0.0-next.355)
6
66
 
7
67
  <sup>Released on **2026-01-23**</sup>
package/Dockerfile CHANGED
@@ -32,7 +32,6 @@ FROM base AS builder
32
32
 
33
33
  ARG USE_CN_MIRROR
34
34
  ARG NEXT_PUBLIC_BASE_PATH
35
- ARG NEXT_PUBLIC_ENABLE_NEXT_AUTH
36
35
  ARG NEXT_PUBLIC_SENTRY_DSN
37
36
  ARG NEXT_PUBLIC_ANALYTICS_POSTHOG
38
37
  ARG NEXT_PUBLIC_POSTHOG_HOST
@@ -45,8 +44,7 @@ ARG FEATURE_FLAGS
45
44
  ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
46
45
  FEATURE_FLAGS="${FEATURE_FLAGS}"
47
46
 
48
- ENV NEXT_PUBLIC_ENABLE_NEXT_AUTH="${NEXT_PUBLIC_ENABLE_NEXT_AUTH:-0}" \
49
- APP_URL="http://app.com" \
47
+ ENV APP_URL="http://app.com" \
50
48
  DATABASE_DRIVER="node" \
51
49
  DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" \
52
50
  KEY_VAULTS_SECRET="use-for-build"
@@ -183,7 +181,33 @@ ENV KEY_VAULTS_SECRET="" \
183
181
 
184
182
  # Better Auth
185
183
  ENV AUTH_SECRET="" \
186
- AUTH_SSO_PROVIDERS=""
184
+ AUTH_SSO_PROVIDERS="" \
185
+ AUTH_ALLOWED_EMAILS="" \
186
+ # Google
187
+ AUTH_GOOGLE_ID="" \
188
+ AUTH_GOOGLE_SECRET="" \
189
+ # GitHub
190
+ AUTH_GITHUB_ID="" \
191
+ AUTH_GITHUB_SECRET="" \
192
+ # Microsoft
193
+ AUTH_MICROSOFT_ID="" \
194
+ AUTH_MICROSOFT_SECRET=""
195
+
196
+ # Redis
197
+ ENV REDIS_URL="" \
198
+ REDIS_PREFIX="" \
199
+ REDIS_TLS=""
200
+
201
+ # Email
202
+ ENV EMAIL_SERVICE_PROVIDER="" \
203
+ SMTP_HOST="" \
204
+ SMTP_PORT="" \
205
+ SMTP_SECURE="" \
206
+ SMTP_USER="" \
207
+ SMTP_PASS="" \
208
+ SMTP_FROM="" \
209
+ RESEND_API_KEY="" \
210
+ RESEND_FROM=""
187
211
 
188
212
  # S3
189
213
  ENV NEXT_PUBLIC_S3_DOMAIN="" \
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Page content switch mismatch."
6
+ ]
7
+ },
8
+ "date": "2026-01-23",
9
+ "version": "2.0.0-next.357"
10
+ },
11
+ {
12
+ "children": {
13
+ "features": [
14
+ "Remove NextAuth."
15
+ ]
16
+ },
17
+ "date": "2026-01-23",
18
+ "version": "2.0.0-next.356"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "fixes": [
@@ -128,9 +128,9 @@ services:
128
128
  condition: service_healthy
129
129
 
130
130
  environment:
131
- - 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
131
+ - 'AUTH_SSO_PROVIDERS=casdoor'
132
132
  - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
133
- - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
133
+ - 'AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
134
134
  - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
135
135
  - 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
136
136
  - 'S3_ENABLE_PATH_STYLE=1'
@@ -173,9 +173,9 @@ services:
173
173
  condition: service_started
174
174
 
175
175
  environment:
176
- - 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
176
+ - 'AUTH_SSO_PROVIDERS=casdoor'
177
177
  - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
178
- - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
178
+ - 'AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
179
179
  - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
180
180
  - 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
181
181
  - 'S3_ENABLE_PATH_STYLE=1'
@@ -96,9 +96,9 @@ services:
96
96
 
97
97
  environment:
98
98
  - 'APP_URL=http://localhost:3210'
99
- - 'NEXT_AUTH_SSO_PROVIDERS=logto'
99
+ - 'AUTH_SSO_PROVIDERS=logto'
100
100
  - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
101
- - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
101
+ - 'AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
102
102
  - 'NEXTAUTH_URL=http://localhost:${LOBE_PORT}/api/auth'
103
103
  - 'AUTH_LOGTO_ISSUER=http://localhost:${LOGTO_PORT}/oidc'
104
104
  - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
@@ -10,8 +10,8 @@ DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobechat
10
10
 
11
11
  # NEXT_AUTH related environment variables
12
12
  NEXTAUTH_URL=http://localhost:3210/api/auth
13
- NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
14
- NEXT_AUTH_SSO_PROVIDERS=zitadel
13
+ AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
14
+ AUTH_SSO_PROVIDERS=zitadel
15
15
  # ZiTADEL provider configuration
16
16
  # Please refer to:https://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
17
17
  AUTH_ZITADEL_ID=285945938244075523
@@ -9,8 +9,8 @@ DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobechat
9
9
 
10
10
  # NEXT_AUTH 相关
11
11
  NEXTAUTH_URL=http://localhost:3210/api/auth
12
- NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
13
- NEXT_AUTH_SSO_PROVIDERS=zitadel
12
+ AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
13
+ AUTH_SSO_PROVIDERS=zitadel
14
14
  # ZiTADEL 鉴权服务提供商部分
15
15
  # 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
16
16
  AUTH_ZITADEL_ID=285945938244075523
@@ -171,9 +171,9 @@ services:
171
171
  condition: service_started
172
172
 
173
173
  environment:
174
- - 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
174
+ - 'AUTH_SSO_PROVIDERS=casdoor'
175
175
  - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
176
- - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
176
+ - 'AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
177
177
  - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
178
178
  - 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
179
179
  - 'S3_ENABLE_PATH_STYLE=1'
@@ -15,9 +15,9 @@ DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
15
15
  # For supported providers, see: https://lobehub.com/docs/self-hosting/advanced/auth#next-auth
16
16
  # If you have ACCESS_CODE, please remove it. We use NEXT_AUTH as the sole authentication source
17
17
  # Required: NextAuth secret key. Generate with: openssl rand -base64 32
18
- NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
18
+ AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
19
19
  # Required: Specify the authentication provider (e.g., Logto)
20
- NEXT_AUTH_SSO_PROVIDERS=logto
20
+ AUTH_SSO_PROVIDERS=logto
21
21
  # Required: NextAuth URL for callbacks
22
22
  NEXTAUTH_URL=https://lobe.example.com/api/auth
23
23
 
@@ -14,9 +14,9 @@ DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
14
14
  # 目前支持的鉴权服务提供商请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth#next-auth
15
15
  # 如果你有 ACCESS_CODE,请务必清空,我们以 NEXT_AUTH 作为唯一鉴权来源
16
16
  # 必填,用于 NextAuth 的密钥,可以使用 openssl rand -base64 32 生成
17
- NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
17
+ AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
18
18
  # 必填,指定鉴权服务提供商,这里以 Logto 为例
19
- NEXT_AUTH_SSO_PROVIDERS=logto
19
+ AUTH_SSO_PROVIDERS=logto
20
20
  # 必填,NextAuth 的 URL,用于 NextAuth 的回调
21
21
  NEXTAUTH_URL=https://lobe.example.com/api/auth
22
22
 
@@ -14,9 +14,9 @@ DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
14
14
  # Required: NextAuth URL for callbacks
15
15
  NEXTAUTH_URL=https://lobe.example.com/api/auth
16
16
  # Required: NextAuth secret key. Generate with: openssl rand -base64 32
17
- NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
17
+ AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
18
18
  # Required: Specify the authentication provider
19
- NEXT_AUTH_SSO_PROVIDERS=zitadel
19
+ AUTH_SSO_PROVIDERS=zitadel
20
20
 
21
21
  # ZiTADEL provider configuration
22
22
  # Please refer to:https://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel
@@ -13,9 +13,9 @@ DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/lobe
13
13
  # 必填,NextAuth 的 URL,用于 NextAuth 的回调
14
14
  NEXTAUTH_URL=https://lobe.example.com/api/auth
15
15
  # 必填,用于 NextAuth 的密钥,可以使用 openssl rand -base64 32 生成
16
- NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
16
+ AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
17
17
  # 必填,指定鉴权服务提供商
18
- NEXT_AUTH_SSO_PROVIDERS=zitadel
18
+ AUTH_SSO_PROVIDERS=zitadel
19
19
 
20
20
  # ZiTADEL 鉴权服务提供商部分
21
21
  # 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth/next-auth/zitadel