-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
🔐 Unify Authentication to BetterAuth #10456
Copy link
Copy link
Closed
Labels
feature:authAuthentication and authorizationAuthentication and authorizationhosting:cloudOfficial LobeHub CloudOfficial LobeHub Cloudplatform:webWeb platformWeb platformpriority:highCritical issues requiring immediate attentionCritical issues requiring immediate attentionreleased on @next📝 DocumentationImprovements or additions to documentationImprovements or additions to documentation
Metadata
Metadata
Assignees
Labels
feature:authAuthentication and authorizationAuthentication and authorizationhosting:cloudOfficial LobeHub CloudOfficial LobeHub Cloudplatform:webWeb platformWeb platformpriority:highCritical issues requiring immediate attentionCritical issues requiring immediate attentionreleased on @next📝 DocumentationImprovements or additions to documentationImprovements or additions to documentation
Overview
In LobeHub 2.0, we will consolidate to a single authentication solution: BetterAuth. Support for AuthJS (NextAuth) and Clerk will be removed.
Why
What will be added
Related Repositories
src/libs/clerk-auth,src/libs/next-authdocs/self-hostingTask Breakdown
0. Environment Variables Optimization
NEXT_PUBLIC_AUTH_URLenvironment variable, client relies on Better Auth default behavior, server usesAPP_URL(LOBE-3914)1. Update BetterAuth Documentation
2. Remove Clerk
3. Remove NextAuth
4. Docker Configuration Optimization
5. Docker Compose Optimization
setup.sh improvements:
JWKS_KEYKEY_VAULTS_SECRET(currently hardcoded)Architecture simplification:
6. Others
Current Status
nextbranch (✨ feat: support better-auth #10215)Important Note
Migrating existing NextAuth or Clerk deployments to better-auth is not yet officially supported. For best results, use better-auth with a clean database on new projects.