Authentication System Cleanup Summary
Overview
All references to the old client-side authentication system have been removed from @knowcode/doc-builder. The project now exclusively uses Supabase for authentication needs.
Changes Made
1. Removed Files
-
/assets/js/auth.js- Old client-side auth script deleted
2. Updated Documentation
-
/docs/guides/authentication-guide.md- Completely rewritten for Supabase only -
/docs/guides/public-site-deployment.md- Updated migration section -
/docs/guides/supabase-auth-setup-guide.md- Removed old auth references -
/docs/launch/bubble-plugin-specification.md- Updated to Supabase auth - Created
/docs/guides/supabase-auth-implementation-completed.md- Records completion
3. CLI Updates
- Updated help text in
cli.jsto reference Supabase authentication - Removed "password protection" terminology
- All auth references now point to Supabase
4. Configuration Changes
- Default config has
authentication: false - Notion preset has
authentication: false - Only Supabase auth can be enabled with
authentication: 'supabase'
Current State
Authentication Options
No Authentication (Default)
// No config needed - public by defaultSupabase Authentication
features: { authentication: 'supabase' }, auth: { supabaseUrl: 'https://xxx.supabase.co', supabaseAnonKey: 'xxx', siteId: 'xxx' }
CLI Commands
npx @knowcode/doc-builder build- Builds public site by defaultnpx @knowcode/doc-builder build --no-auth- Forces public buildnpx @knowcode/doc-builder deploy- Deploys based on confignpx @knowcode/doc-builder deploy --no-auth- Forces public deployment
What Users Need to Know
- Authentication is disabled by default - Public docs work out of the box
- Only Supabase is supported - No other auth methods available
- Old configs won't work - Must migrate to Supabase if auth needed
- Clear documentation - Full guide at
/docs/guides/authentication-guide.md
No Traces Remain
- No username/password fields in config
- No client-side credential checking
- No references to "basic auth" in active code
- No old auth.js files
- All documentation updated
The cleanup is complete. @knowcode/doc-builder now has a clean, secure authentication system powered exclusively by Supabase.