You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LobeChat supports multi-user management and provides two main user authentication and management solutions to meet different needs:
425
+
LobeChat supports multi-user management and provides flexible user authentication solutions:
426
426
427
-
-**next-auth**: LobeChat integrates `next-auth`, a flexible and powerful identity verification library that supports multiple authentication methods, including OAuth, email login, credential login, etc. With `next-auth`, you can easily implement user registration, login, session management, social login, and other functions to ensure the security and privacy of user data.
427
+
-**Better Auth**: LobeChat integrates `Better Auth`, a modern and flexible authentication library that supports multiple authentication methods, including OAuth, email login, credential login, magic link, and more. With `Better Auth`, you can easily implement user registration, login, session management, social login, multi-factor authentication (MFA), and other functions to ensure the security and privacy of user data.
428
428
429
-
-[**Clerk**](https://go.clerk.com/exgqLG0): For users who need more advanced user management features, LobeChat also supports `Clerk`, a modern user management platform. `Clerk` provides richer functions, such as multi-factor authentication (MFA), user profile management, login activity monitoring, etc. With `Clerk`, you can get higher security and flexibility, and easily cope with complex user management needs.
430
-
431
-
Regardless of which user management solution you choose, LobeChat can provide you with an excellent user experience and powerful functional support.
429
+
-**next-auth**: LobeChat also supports `next-auth`, a widely-used identity verification library with extensive OAuth provider support and flexible session management options.
Copy file name to clipboardExpand all lines: docs/self-hosting/advanced/auth/clerk-to-betterauth.mdx
+11-42Lines changed: 11 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,15 @@ This guide helps you migrate your existing Clerk-based LobeChat deployment to Be
24
24
-**Always backup your database first!** For Neon users, create a backup via [Fork Branch](https://neon.tech/docs/manage/branches#create-a-branch)
25
25
- LobeChat is not responsible for any data loss or issues that may occur during the migration process
26
26
- This guide is intended for users with development experience; not recommended for users without technical background
27
-
- If you have any questions, feel free to ask in our [Discord](https://discord.com/invite/AYFPHvv2jT) community
27
+
- If you have any questions, feel free to ask in our [Discord](https://discord.com/invite/AYFPHvv2jT) community or [GitHub Issue](https://github.com/lobehub/lobe-chat/issues/11707)
28
28
</Callout>
29
29
30
30
## Choose Your Migration Path
31
31
32
-
| Method | Best For | User Impact | Data Preserved |
# See Authentication Service Configuration documentation for details
316
-
```
317
-
318
-
3.**Redeploy LobeChat**
287
+
After migration is complete, follow [Simple Migration - Step 2](#steps) to configure Better Auth environment variables and redeploy.
319
288
320
289
<Callouttype={'tip'}>
321
-
For complete Better Auth configuration, see [Authentication Service Configuration](/docs/self-hosting/advanced/auth), including all supported SSO providers and email service configuration.
290
+
For complete Better Auth configuration, see [Authentication Service Configuration](/docs/self-hosting/advanced/auth).
0 commit comments